LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Connecting to MySQL on Solaris? (https://www.linuxquestions.org/questions/linux-software-2/connecting-to-mysql-on-solaris-641651/)

homer_3 05-12-2008 09:45 AM

Connecting to MySQL on Solaris?
 
I have mysql installed on SunOS 5.9 which I've read is referred to as Solaris. I've got mysql running using /etc/init.d/mysql start but I can't figure out how to connect to it. Normally, I'd connect to it using mysql -u <username> -p. But that's not working. I get an error saying -p isn't recognized and if I leave it out it gives me a usage error saying it only accepts start,stop,restart,status,help,force-reload,reload.

I'm not the one who installed it and the guy who did is gone and didn't leave any documentation. Does this setup sound familiar to anyone? Do you know how I can connect so I can write some sql to add new tables?

Wim Sturkenboom 05-12-2008 10:42 AM

The usage error message seems to indicate that you try to start the server and not the client.

bigrigdriver 05-12-2008 11:55 AM

Start the mysql server with /usr/bin/mysqld_safe, then login with mysql -u .


All times are GMT -5. The time now is 03:57 PM.