Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two server, one is database hosted and another one is application base server, in database server i gave the remote access , i can access the database by command prompt but in web through i cant, am not able to understand what i missed.
can you please help me how to get out this situation.
I have two server, one is database hosted and another one is application base server, in database server i gave the remote access , i can access the database by command prompt but in web through i cant, am not able to understand what i missed. can you please help me how to get out this situation.
You aren't providing us details; saying "linux based" tells us nothing, nor does "web through i cant". You don't tell us version/distro of Linux, what web app(s) you're using to try to access the database, etc. We can't guess, but if you can access it over command-line, then your problem is simple; you haven't configured your web page/system/program/whatever, to use the right connection details. And since you don't tell us what those things are, we don't know what to tell you.
Please say which distro you have on these machines (including version), which version of mariadb you have, and which shell you are using. Also are you accessing through SSH or directly to the database via an exposed external port?
am extremely very sorry, I didn't mentioned rest of information .
I have two dedicated Linux server, OS is CentOS 7, On first server i configured the maria db and i set the grant privileges to that server (grant all on *.* to 'root'@'%' . On second server i hosted one web application. now my issues on second server is by command prompt i can access my database by using following command
mysql -u root -h database_ipaddress -p
but on same server i make a simple php page for checking database connectivity.
How is the arrangement between the web server with PHP and the mariadb daemon? Are they on the same machine or different machines? If they are on different machines, are they on the same LAN or not?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.