Can't Log in to MySQL after setup
I'm running Freelink (Debian 3.1) on my Buffalo Linkstation and I'm trying to set up MySQL. I followed this walkthrough and downloaded mysql-5.0.41. I was able to get it installed and I can start up the server but I can't login to it. I've tried to log in from the command line and from Webmin with no luck. Here's what happens when I try to login:
Code:
Paragon:/mnt/opt/mysql# bin/mysql -u root -p |
Can you verify the server is running? If it is try
mysql -u root. |
Yes, it is running. At least I think this means that it is:
Code:
Paragon:/mnt/opt/mysql# /etc/init.d/mysql.server start |
Try:
ps aux | grep mysql or ps aux | grep mysqld One of them should show a few lines with a mysql process. Did you edit my.cnf and move it into place? I am sorry I did not read the link you provided. At any point did you change or add a root password etc? On my machine I can see any error messages printed to /var/db/mysql/ . substitute HOSTNAME with your machine name. May be a bit different for you, not too sure. cat /var/db/mysql/HOSTNAME.err Hope it helps some. |
I just checked on a Linux machine (FC7) and it has its data directory under /var/lib/mysql but it's logs do go to /var/log/mysqld.log . So you may be able to check that for more info. Sorry about that.
Hope it helps some. Also do a search here on LQ for your problems as there are loads of these questions about mysql processes not starting, running, connection issues etc. Some even by myself ;} |
Have you tried reseting the password ?
However you must start sql server first /etc/init.d/mysql.server start /mnt/opt/mysql/bin/mysqladmin -u root password 'new-password' /mnt/opt/mysql/bin/mysqladmin -u root -h 'servername' password 'new-password' |
Thank you so much for the quick replies. When I do the command "ps aux | grep mysql" I get a lot of entries that look like this:
Code:
mysql 455 0.0 20.8 43672 13056 ? S 09:49 0:00 /mnt/opt/mysql/libexec/mysqld --basedir=/mnt/opt/mysql --datadir=/mnt/opt/mysql/var --user=mysql --pid-file=/mnt/opt/mysql/var/Paragon.pid --skip-external-locking --port=3306 --socket=/tmp/mysql.sock Code:
[client] |
Thanks for the replies, guys. I just tried what bzposse said and got this:
Code:
Paragon:/var/log# /mnt/opt/mysql/bin/mysqladmin -u root -h 'paragon' password 'new-password' |
All times are GMT -5. The time now is 04:08 PM. |