Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing and Configuring MySQL

Status
Not open for further replies.

awpadmin

Technical User
Apr 24, 2002
6
US
System: MAC 10.3.2 G4 workstation

For the past three weeks I am trying to do the "simple" install. But of course it never works the way it reads. I have followed the FAQ and install descriptions that came with the package <but i am stuck. At the moment I need to create a database and set the root password. i have no idea why it is not working. the following is the command line and error I am getting. Can someone please help me to install this properly? Thanks.

-=awpadmin=-

==========>

/usr/local/mysql/bin/mysqladmin -u root password "newpwd"
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
 
Have you stopped the built-in mysql before installing the new one? Can you log into the server at all using "mysql -u root"? I assume that you have already run the MySQLStartupItem.pkg, right? It looks like the mysql server has not started, can you verify by using "ps -ax | egrep -i mysql"?
 
When I use 'mysqladmin shutdown' I get 'mysqladmin" command not found'. I have installed the MySQLStartupItem.pkg. 'ps -ax | egrep -i mysql' returns:
#:/etc/httpd root# ps -ax | egrep -i mysql
355 ?? S 0:00.03 sh ./bin/safe_mysqld --defaults-file=/Applications/La
386 ?? S 0:00.60 /Applications/LassoProfessional6/LassoMySQL/libexec/ 907 std R+ 0:00.00 egrep -i mysql
 
hmm, looks like your installed version of MySQL is not running, but the copy that was installed with Lasso Professional is, are you using that copy of MySQL that came with Lasso? I stopped using Lasso a long time ago but I think that it(lasso mysql) runs over the same port as a standard MySQL installation and would need to be turned off before installing a new copy of MySQL, or your new installation should be configured to run on a different port than 3306. I would refer to this page: for information on how to install 2 mysql servers at once.
 
Thanks a lot for your input. I dont get paid to mess with this! I am going to consult with the people who setup Lasso on this server.

-=awpafmin=-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top