Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-12-2008, 10:45 AM   #1
Registered: May 2008
Posts: 97

Rep: Reputation: 15
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?
Old 05-12-2008, 11:42 AM   #2
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
The usage error message seems to indicate that you try to start the server and not the client.
Old 05-12-2008, 12:55 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Start the mysql server with /usr/bin/mysqld_safe, then login with mysql -u .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting Solaris ot my Office LAN mimoh_mi Solaris / OpenSolaris 17 06-26-2007 10:17 AM
connecting to the internet with solaris 10 ShaqDiesel Solaris / OpenSolaris 2 04-21-2007 08:12 AM
Connecting to Solaris Servers from Fedora Core 2 j911058 Linux - Networking 0 08-06-2004 11:08 PM
Connecting to Solaris from linux machine j911058 Linux - Newbie 3 06-06-2004 09:36 PM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 04:21 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration