Error 1044 Access denied to database

Installation and configuration iussues

Moderators: macek, egami, gesf

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

Post by ruturajv » 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: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Post by ruturajv » 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: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Error 1044 Access denied to database

Post by WiZARD » 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!

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest