Problem on installing MySQL
Hi folks,
Ubuntu 7.04 server amd64 MySQL 5.0.38 On installing MySQL and coming to; $ sudo mysqladmin -h ubuntu.xyz.com root password myrootsqlpassword Code:
mysqladmin: connect to server at 'ubuntu.satimis.com' failed Code:
ubuntu.xyz.com Code:
root 4557 0.0 0.0 3860 572 ? S 20:35 0:00 /bin/sh /usr/bin/mysqld_safe $ cat /var/log/daemon.log | grep 111 No printout $ cat /var/log/messages | grep 111 Code:
Oct 23 08:54:28 ubuntu kernel: [ 24.857900] ata2.00: ATA-7: Maxtor 6V160E0, VA111900, max UDMA/133 B.R. satimis |
You can get the exact error message if the mysqld service isn't running.
Check the connection with: telnet ubuntu.xyz.com 3306 and telnet localhost 3306 Is the connection rejected outright, or after a timeout? |
Quote:
$ telnet ubuntu.xyz.com 3306 Code:
Trying 127.0.1.1... Code:
Trying 127.0.0.1... $ cat /etc/mysql/my.cnf | grep 127.0.0.1 Code:
bind-address = 127.0.0.1 TIA B.R. satimis |
3306 is the default port that mysql uses. According to your ps listing it is what your machine uses.
Please double check that the mysql server is running. And try the telnet command locally on the same machine. If you do it remotely you need to check the firewall settings. The bind address has a different meaning here. This just means that the server is connected to a socket on localhost. That is normal. I think that the mysql log in in the /var/lib/mysql/ directory. |
Quote:
Quote:
Code:
* /usr/bin/mysqladmin Ver 8.41 Distrib 5.0.38, for pc-linux-gnu on x86_64 Quote:
Tried again on the same machine with firewall stopped. $ sudo iptables -F No complaint. $ telnet ubuntu.xyz.com 3306 Code:
Trying 127.0.1.1... Code:
Trying 127.0.0.1... Quote:
Code:
debian-5.0.flag ibdata1 ib_logfile0 ib_logfile1 mysql mysql_upgrade_info Code:
columns_priv.frm help_relation.MYI time_zone_leap_second.frm Others noted with thanks. satimis |
My mysql log is in /var/lib/mysql and not /var/lib/mysql/mysql. The latter is where the tables are stored.
Did you try to log into mysql either without the -h option or using "-h localhost"? That is the one that may work and if you can access it that way, you can add your hostname and a regular user. Use, "mysql -u root", if you haven't added a password for root; mysql -u root -p <password> otherwise. --- Quote:
Could you check if /etc/hosts.allow or /etc/hosts.deny are causing a problem. Also check your /etc/hosts file. I've seen where "localhost" uses an IPV6 type address near the end of the file. Check that the first uncommented line is "127.0.0.1 localhost". If not you could have problems it you edit /etc/hosts.allow or /etc/hosts.deny. |
Quote:
I followed this link to proceed; SHOW mysqld LOG FILES; http://dev.mysql.com/doc/refman/5.0/...-commands.html $ mysql --user=root --password=mysqlpassword Code:
Welcome to the MySQL monitor. Commands end with ; or \g. # find / -name mysql.log Code:
/var/log/mysql.log But it is an empty file; # cat /var/log/mysql.log No printout Quote:
Code:
sshd: 127.0.0.1 $ cat /etc/hosts.deny Code:
sshd:ALL EXCEPT localhost \ Code:
127.0.0.1 localhost.localdomain localhost B.R. satimis |
All times are GMT -5. The time now is 10:18 PM. |