Error 1044 Access denied to database

Installation and configuration iussues

Moderators: egami, macek, gesf

Post Reply
User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Sun Jun 06, 2004 7:56 pm

the sql file you mentioned...
must not be having "create database thetours..."
and actually directly trying to acces the db..

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Mon Jun 14, 2004 8:22 pm

try this

Code: Select all

mysql -u username DATBASE -p < script.sql


it will prompt you for password.

User avatar
WiZARD
Moderator
Moderator
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Mon Jun 14, 2004 10:54 pm

john10001 wrote:
Error 1044 Access denied for user: '@localhost' to database
'newland_tours'

Error 1046 No Database Selected

As I understand, to you need select database before run query. So to you need use mysql_select_db.
Good Luck!
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest