简体   繁体   中英

Connecting to mysql using zend server

I recently installed zend server on my mac. I'm liking it a lot.

However when I try to connect to my mysql server with something like sequelpro I can't do it. Only with phpmyadmin.

I'm using the default setup

user: root

host: localhost

pass:

Any idea on what the problem is?

Issue the terminal command $ ps -ax | grep mysql $ ps -ax | grep mysql

You should get something like:

11720 ttys001    0:22.58 /usr/local/zend/mysql/bin/mysqld 
--defaults-extra-file=/usr/local/zend/mysql/data/my.cnf 
--basedir=/usr/local/zend/mysql --datadir=/usr/local/zend/mysql/data 
--user=zend --log-error=/usr/local/zend/mysql/data/machine.private.err 
--pid-file=/usr/local/zend/mysql/data/machine.private.pid 
--socket=/usr/local/zend/mysql/tmp/mysql.sock --port=42375

Check out the --port= If it is not 3306 then you will need to tell you MYSQL client the port to connect to.

What is the error you are getting?

ERROR 1044 (42000): Access denied for user 

or

ERROR 2005 (HY000): Unknown MySQL server host 'localhost'

If it's the 2005 error, try changing the hostname to 127.0.0.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM