LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-28-2004, 11:00 PM   #1
Algernon
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
mysql troubles


alright
i just installed slackware 10 and now im trying to get mysql going.
i have mysql running
i need to make a new user
so i go to my terminal and and try to get in as root but i get an error. so i try it as a normal user and i get in.

here's the code:
Code:
eth0real@zero-cool:~$ su
Password:
root@zero-cool:/home/eth0real# mysql
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
root@zero-cool:/home/eth0real# exit
exit
eth0real@zero-cool:~$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 4.0.20
ok so now im in i guess but when ever i use and commands and try to add users i get the following

ERROR 1045: Access denied for user: '@localhost' (Using password: NO)

what's going on?
as you can probably tell i dont know too much about mysql.

thanks
 
Old 09-28-2004, 11:06 PM   #2
m2azer
Member
 
Registered: Sep 2004
Location: USA
Distribution: red hat, fedora & centos
Posts: 202

Rep: Reputation: 30
did you set password on your mysql root user or not yet?
if u did ? u need t log in as mysql root:

mysql -u root -p
password:

this way u have permision on everything in mysql. i don't believe its the right way to do things because you should assign a regular user some permission to be able to do those sorts of tasks instead of the root. but this will work
 
  


Reply



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
MySQL Innodb troubles Baltasar Linux - Software 1 04-20-2005 09:01 AM
MySQL dependency troubles colabus Linux - Newbie 2 01-19-2005 05:08 AM
PHPBB2 and MySql Troubles DakotaMan2002 Linux - Newbie 4 09-29-2004 06:43 PM
mysql troubles! cav Slackware 2 02-07-2004 03:25 AM
horrible mysql troubles whiteboy Linux - Networking 3 09-03-2003 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 AM.

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