MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 15th, 2000, 12:33 AM
glo glo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 4 glo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The administrator installed mysql on
/import/misc2/mysql-3.22.22/ in Solaris 2.7, however as a user, I experienced the following problem:
> {prompt:3} mysql
> ERROR 1045: Access denied for user: 'glo@localhost' (Using password: NO)
Then I asked the administrator to run the following command in mysql:
mysql>GRANT ALL ON *.* TO glo@localhost IDENTIFIED BY "password"
WITH GRANT OPTION

However, I experienced the same error message as before. Then the administrator tried to killed the daemon and restart, Finally I ended up with this:
{prompt:4}mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock)
{prompt:5}/import/misc2/mysql-3.22.22/bin/safe_mysqld
Starting mysqld daemon with databases from /etc/mysql
mysqld daemon ended
---------
Please Help. Thanks.


Reply With Quote
  #2  
Old May 18th, 2000, 03:44 PM
Robman Robman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: SLC, UT, USA
Posts: 47 Robman User rank is Private First Class (20 - 50 Reputation Level)Robman User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Did the administrator shut it down with mysqladmin or did he kill the process?

If he killed the process then try deleting the /tmp/mysql.sock file if it exists.

Robman

Reply With Quote
  #3  
Old June 28th, 2000, 11:59 AM
meddaugh meddaugh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 1 meddaugh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You also need to make sure that you run the mysql command with a "-p" to prompt for a password. That's what the (Using password: NO) means.

{prompt}3: mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 123 to server version: 3.22.30-log

Type 'help' for help.

mysql>

Reply With Quote
  #4  
Old June 28th, 2000, 01:04 PM
strider3700 strider3700 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 8 strider3700 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I get the same error if I don't place the ./ in front of the command, so
mysql -u username -p gives me the error
./mysql -u username -p doesn't give me the error
not sure what's different about this program then any other as to why this happens.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > mySQL in Solaris


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway