where can I find a mysql sock?
I run a mysql instance by typing following codes:
mei@ubuntu:~$ MYSQL_UNIX_PORT=/tmp/mysqld-new.sock
mei@ubuntu:~$ MYSQL_TCP_PORT=3307
mei@ubuntu:~$ export MYSQL_UNIX_PORT MYSQL_TCP_PORT
mei@ubuntu:~$ sudo mysql_install_db --user=mysql
mei@ubuntu:~$ sudo mysqld_safe --datadir=/mysql1/mysql &
then I want connect this mysql instance:
mei@ubuntu:~$ mysql -h localhost --port=3307 --socket=/tmp/mysqld-new.sock -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysqld-new.sock' (111)
where does mysqld-new.sock come from ?
|