Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Silly Questions I am Sure (MySQL, VSFTP Authentication)...

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Author Message
pmmenneg



Joined: 09 Mar 2004
Posts: 41

Posted: Tue Mar 09, 2004 3:02 am    Post subject: Silly Questions I am Sure (MySQL, VSFTP Authentication)...  

Hi everyone. Just signed up recently and trying to get my stuff up and running... I installed the RH 9 minimal, which had Apache, MySQL and PHP installed already. Set them up to start at boot, and started configuring them. I have Apache working fine, and PHP is working, but now I have put phpMyAdmin and I am having issues connecting to the MySQL db. phpmyadmin is saying that I don't have access to the db.

Basically, I am getting authentication problems connecting as root. I am a newbie to MySQL on Linux, so bear with me. When I run mysqladmin from the console as root, I get a 'access denied for user: root@localhost Using Password:NO' error.

Can someone offer some advice on what I am doing wrong? The default install has a mysql user I believe, but I really don't know where to start trouble shooting this...

Also, similar problem with vsftp. I can connect as anonymous fine, but when I try to restrict it to local users, I can't authenticate. Maybe these are related?

Sorry for the questions, any help appreciated.
Back to top  
gmt



Joined: 20 Jul 2003
Posts: 96
Location: Tropical Queensland, Australia

Posted: Tue Mar 09, 2004 4:21 am    Post subject:  

You don't connect to phpmyadmin as root, you connect as a mysql user.

Most people install www.webmin.com to add mysql users & other admin tasks.
Back to top  
irgeek



Joined: 21 Jun 2003
Posts: 104
Location: Denver, CO

Posted: Fri Mar 12, 2004 5:58 pm    Post subject:  

I believe that if you su to the user running mysqld you become a superuser as far as mysql is concerned. You can then add a user (i.e. yourself) with full right to everything and log into phpMyAdmin using that username/password. Then go from there. Don't forget to change any default mysql account passwrods to something different than they are, just in case someone tries to log in to you mysql server.

--James
Back to top  
softex



Joined: 31 Mar 2004
Posts: 3

Posted: Wed Mar 31, 2004 12:00 pm    Post subject: Re: Silly Questions I am Sure (MySQL, VSFTP Authentication).  

pmmenneg wrote: Basically, I am getting authentication problems connecting as root. I am a newbie to MySQL on Linux, so bear with me. When I run mysqladmin from the console as root, I get a 'access denied for user: root@localhost Using Password:NO' error.


I'm getting the same thing. After setting up a panel and a billing system as well as several user databases (all using mysql from the install or form the panel) I NOW want to access from root and can't. The original default root access (never attempted until now) has possibly been modified by the foregoing installations? Using Red hat 9 small distro. Any ideas?

-Dave
Back to top  
Bill Clinton



Joined: 23 Nov 2003
Posts: 79

Posted: Wed Mar 31, 2004 1:07 pm    Post subject:  

I do no know what you guys are using to connect to the MySQL server, but on the command line I use:

root@host# mysql -p

it works fine

Bill Clinton
Back to top  
softex



Joined: 31 Mar 2004
Posts: 3

Posted: Wed Mar 31, 2004 4:20 pm    Post subject:  

OK Bill, got it. I can access those databases (created with the panel) on the command line. But can we access the default mysql database with (mysql) user root, for access to ALL databases and tables, or is that one thing we can't do on these virtual machines?
-Dave
Back to top  
smerritt



Joined: 18 Nov 2003
Posts: 30

Posted: Wed Mar 31, 2004 7:28 pm    Post subject:  

Quote: or is that one thing we can't do on these virtual machines?

I'm no MySQL expert, but I know that the only things you can't do on a Linode that you can do on a real computer involve the Linux kernel. You can't install your own kernel, nor can you insert or remove kernel modules.

As far as MySQL is concerned, there is zero difference between running on a Linode and running directly on a real, physical computer.
Back to top  
 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Page 1 of 1