Re: Error 1044 Access denied to database

From: Aggro (spammerdream_at_yahoo.com)
Date: 06/06/04


Date: Sun, 06 Jun 2004 16:42:59 GMT

John wrote:

> If you can help me I'd be very grateful. I think that something must
> be wrong or amiss with the settings or the paths to the files in
> my.ini file? Or perhaps it is just a bug with php or MySql?

It is not a bug, and it has nothing to do with php, so alt.php,
alt.comp.lang.php and comp.lang.php groups are not concerned about this
problem.

And even if this would be problem for php also, don't post to several
different newsgroups. Pick one group and one group only and post your
question to there. If you fail to get help from there, think again was
the group selection good or bad and did you ask the question properly.
If you think yes, then you can try another group. Why you should do
this? Because many people don't usually even bother to answer people who
  post the question into many newsgroups, because it is against the
netiquette. This is only a friendly advice, because you might not know
this "rule". Don't be offended by me reminding it.

Now, to your problem.

When you installed MySQL you had a root account at the very beginning.
You might have changed the password for it, but if you havent, the
password is empty. The root user has privileges to do anything in the
database, while test user (which is the user you seem to have logged in,
has privileges only in the "test" database.) Try to start your mysql
console program like this:

mysql -u root

If you can get in, you don't have a root password, but that doesn't
matter with this problem. When you get in, try to type the command you
tried earlier:

source C:\mysql\newland_tours.sql

It should not give the same error anymore.

Follow-ups set to mailing.database.mysql only



Relevant Pages

  • Re: Error 1044 Access denied to database
    ... Or perhaps it is just a bug with php or MySql? ... When you installed MySQL you had a root account at the very beginning. ...
    (alt.php)
  • MySQL (was Re: Notice about seconds overroll - S7K bug)
    ... Subject: MySQL (was Re: Notice about seconds overroll - S7K bug) ... There is not much in MySQL we can do to ... The way I dealt with this in PHP is by writing a function to validate input ...
    (Bugtraq)
  • php-cli no mysql module for non-root
    ... Basically, if I am logged in as root and issue a "php -m", mysql is in the ... Zend Engine v1.3.0, ...
    (comp.lang.php)
  • Text relocation remains - Error building PHP 5.1.2
    ... MySQL is 5.0.18 and built on same host. ... in trying to build PHP 5.1.1 or 5.1.12. ... that it's a common issue, and I don't believe it's a MySQL bug, since ...
    (comp.lang.php)
  • Re: openSUSE Phpmyadmin
    ... I added the root password here: ... So that does not need to be a real password in any way? ... On the left you will have the database mysql where you could add more ... it in php. ...
    (alt.os.linux.suse)