Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

mySQL user privilege query

Thread Tools
 
Search this Thread
 
Old 11 January 2002, 05:10 PM
  #1  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Question

OK, mysql novice here, I have a linux server, i know the admin username and password and know the su password.
Want to create a database but always get a :
ERROR 1044: Access denied for user: '@localhost' to database 'MYTEMP'

Who should I be logged on as?

Any good quick start guides for SQL not pages and pages of stuff. I just want the real quick start guide...
Old 11 January 2002, 09:46 PM
  #2  
Lee
Scooby Regular
 
Lee's Avatar
 
Join Date: Mar 1999
Location: Essex
Posts: 1,681
Likes: 0
Received 0 Likes on 0 Posts
Post

on a first time install of mySQL you have a database called mySQL and a demo one (called test or something - can't remember)

mysql -u root -p

and then enter the password to get on as root.

create database xxxx ;

use xxxx ;

all from memory (poor) 'fraid - I use mascon from www.scibit.com
Old 12 January 2002, 01:00 PM
  #3  
mparsonage
Scooby Regular
 
mparsonage's Avatar
 
Join Date: Oct 2001
Posts: 70
Likes: 0
Received 0 Likes on 0 Posts
Lightbulb

The MySQL privileges system is completely separate from the host system's privileges. Therefore, it doesn't matter who you are logged in as.

There is no default password for root - so you can just connect using 'mysql -u root'. Obviously you'll want to change this:

USE mysql;
UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
FLUSH PRIVILEGES;

If you have forgotten the root password, you can restart mysqld with --skip-grant-tables to change the password.

I'd recommend using phpMyAdmin (if you've got PHP) to access the DB.
Old 12 January 2002, 01:04 PM
  #4  
mparsonage
Scooby Regular
 
mparsonage's Avatar
 
Join Date: Oct 2001
Posts: 70
Likes: 0
Received 0 Likes on 0 Posts
Post

Forgot the tutorial link :

Introduction to MySQL: A MySQL Tutorial
Old 14 January 2002, 08:54 AM
  #5  
RichB
Scooby Regular
Thread Starter
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks guys will give it a try.

Scoobynet never ceases to amaze me at how quick you can get an answer to almost any question.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
psport
Subaru Parts
3
04 October 2015 07:35 PM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
shorty87
Wheels And Tyres For Sale
0
29 September 2015 02:18 PM
ALEXSTI
General Technical
5
28 September 2015 09:29 PM
Ozne
General Technical
2
27 September 2015 03:06 PM



Quick Reply: mySQL user privilege query



All times are GMT +1. The time now is 06:39 AM.