Jump to content

MYSQL ERROR


richarro123

Recommended Posts

I am not sure if you have set password for the deafult user

 

you can try logging in as \"root\" with <blank> password

 

Once you are able to login then try changing the previlage of the user you created.

 

You can download the SQLYOG (www.sqlyog.com) a GUI based tool which can be handy.

Link to comment
https://forums.phpfreaks.com/topic/984-mysql-error/#findComment-3335
Share on other sites

mysql -u root I am just entering my user name and no passowrd is supplied

 

C:mysqlbin>mysql -u root

Welcome to the MySQL monitor. Commands end with ; or g.

Your MySQL connection id is 1 to server version: 4.1.0-alpha-max-nt

 

To supply password

 

mysql -u <login_name> -p

 

C:mysqlbin>mysql -u admin -p

Enter password: *****

Welcome to the MySQL monitor. Commands end with ; or g.

Your MySQL connection id is 2 to server version: 4.1.0-alpha-max-nt

 

Type \'help;\' or \'h\' for help. Type \'c\' to clear the buffer.

 

mysql>

 

If you are using windows you can downlaod SQLYOG www.sqlyog.com a GUI tool whcih can help you a lot.

Link to comment
https://forums.phpfreaks.com/topic/984-mysql-error/#findComment-3344
Share on other sites

Have a look at this

 

C:mysqlbin>mysql -u admin -p

Enter password: *****

Welcome to the MySQL monitor.  Commands end with ; or g.

Your MySQL connection id is 20 to server version: 4.1.0-alpha-max-nt

 

Type \'help;\' or \'h\' for help. Type \'c\' to clear the buffer.

 

mysql> use mysql

Database changed

mysql> select * from user;

+-----------+-------+------------------+-------------+-------------+-------------+-------------+----

---------+-----------+-------------+---------------+--------------+-----------+------------+--------

---------+------------+------------+

| Host      | User  | Password         | Select_priv | Insert_priv | Update_priv | Delete_priv | Cre

ate_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | Referen

ces_priv | Index_priv | Alter_priv |

+-----------+-------+------------------+-------------+-------------+-------------+-------------+----

---------+-----------+-------------+---------------+--------------+-----------+------------+--------

---------+------------+------------+

| localhost | root  |                  | Y           | Y           | Y           | Y           | Y

        | Y         | Y           | Y             | Y            | Y         | Y          | Y

        | Y          | Y          |

| %         | root  |                  | Y           | Y           | Y           | Y           | Y

        | Y         | Y           | Y             | Y            | Y         | Y          | Y

        | Y          | Y          |

| localhost |       |                  | Y           | Y           | Y           | Y           | Y

        | Y         | Y           | Y             | Y            | Y         | Y          | Y

        | Y          | Y          |

| %         |       |                  | N           | N           | N           | N           | N

        | N         | N           | N             | N            | N         | N          | N

        | N          | N          |

| localhost | admin | 43e9a4ab75570f5b | Y           | Y           | Y           | Y           | Y

        | Y         | Y           | Y             | Y            | Y         | Y          | Y

        | Y          | Y          |

+-----------+-------+------------------+-------------+-------------+-------------+-------------+----

---------+-----------+-------------+---------------+--------------+-----------+------------+--------

---------+------------+------------+

5 rows in set (0.00 sec)

 

mysql>

 

 

Table structure

 

Field            Type                                Collation          Null    Key     Default  Extra  

---------------  ----------------------------------  -----------------  ------  ------  -------  ------

Host             char(60) character set latin1       latin1_swedish_ci          PRI                    

User             char(16) character set latin1       latin1_swedish_ci          PRI                    

Password         char(16) character set latin1       latin1_swedish_ci                                  

Select_priv      enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Insert_priv      enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Update_priv      enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Delete_priv      enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Create_priv      enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Drop_priv        enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Reload_priv      enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Shutdown_priv    enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Process_priv     enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

File_priv        enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Grant_priv       enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

References_priv  enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Index_priv       enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

Alter_priv       enum(\'N\',\'Y\') character set latin1  latin1_swedish_ci                  N              

 

I know this is confusying. Download the tool I told SQLYOG thats really helpful.

Link to comment
https://forums.phpfreaks.com/topic/984-mysql-error/#findComment-3363
Share on other sites

ok new problem

i whent to the mysql bin folder and opend mysqld which is wot it is then it came up with the mysql> thing anyway i dunno if that means im already logged in but i went to type use database and it just shows an arrow under it like this

mysql>

->

and normally u have to do ; or g so i tried them and it said ERROR 1044: access denied for user: \'root@localhost\' to database \'mysql\'

so i tried loggin in agen and i kept gettin that same error massage i tried loggin in as admin usin admin as pass and got access denied then admin no pass then it came up with mysql> but then i did use mysql agen and still got access denied and before u say it i downloaded sqlyog and it wont let me do anything on there i still get access denied for user @localhost.

i have come to one conclusion:

MYSQL SUX ASS COZ I CANT DO IT

i really want it to get sorted coz i am settin up my own buisness and i need a mysql database for all my sellin items and staff and customers but i cant get it sorted!!!!!!!!!.. :evil: :evil:

Link to comment
https://forums.phpfreaks.com/topic/984-mysql-error/#findComment-3373
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.