473,661 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mySQL error

Hi, i am a beginner in PHP and mySQL.
Whenever I try to connect my php and mysql
database, i get this error.:
MySQL error : access denied for myuser@localhos t (Using password:yes)

I have created a database called mydatabase at the SQLmonitor,
mySQL> create database mydatabase;

then i try to grant the access to mydatabase by
mySQL>GRANT usage on mydatabase.* to myuser@localhos t;
mySQL>GRANT ALL PRIVILEGES on mydatabase.* to myuser@localhos t;
mySQL>exit
mySQL>SET PASSWORD FOR myuser = Password('hello world');
I modified the php file with the database username as myuser, password as
helloworld,
host as localhost, database name as mydatabase.

Please advice as to how i can avoid having problems of access denied above.
thank you.
zhen

Jul 19 '05 #1
3 3126
I have the same problem
I try to improve the security on the mysql and now I can't get into it.
I get this massage.

“Access denied for user: '@localhost' to database 'mysql' ”

Is the same throw webmin or phpMyAdmin

Can anybody please help

I’m runnin Redhat 7.3 and mysql 3.23.56
/harly

c_chen wrote:
Hi, i am a beginner in PHP and mySQL.
Whenever I try to connect my php and mysql
database, i get this error.:
MySQL error : access denied for myuser@localhos t (Using password:yes)

I have created a database called mydatabase at the SQLmonitor,
mySQL> create database mydatabase;

then i try to grant the access to mydatabase by
mySQL>GRANT usage on mydatabase.* to myuser@localhos t;
mySQL>GRANT ALL PRIVILEGES on mydatabase.* to myuser@localhos t;
mySQL>exit
mySQL>SET PASSWORD FOR myuser = Password('hello world');
I modified the php file with the database username as myuser, password as
helloworld,
host as localhost, database name as mydatabase.

Please advice as to how i can avoid having problems of access denied above.
thank you.
zhen



Jul 19 '05 #2
I have the same problem
I try to improve the security on the mysql and now I can't get into it.
I get this massage.

“Access denied for user: '@localhost' to database 'mysql' ”

Is the same throw webmin or phpMyAdmin

Can anybody please help

I’m runnin Redhat 7.3 and mysql 3.23.56
/harly

c_chen wrote:
Hi, i am a beginner in PHP and mySQL.
Whenever I try to connect my php and mysql
database, i get this error.:
MySQL error : access denied for myuser@localhos t (Using password:yes)

I have created a database called mydatabase at the SQLmonitor,
mySQL> create database mydatabase;

then i try to grant the access to mydatabase by
mySQL>GRANT usage on mydatabase.* to myuser@localhos t;
mySQL>GRANT ALL PRIVILEGES on mydatabase.* to myuser@localhos t;
mySQL>exit
mySQL>SET PASSWORD FOR myuser = Password('hello world');
I modified the php file with the database username as myuser, password as
helloworld,
host as localhost, database name as mydatabase.

Please advice as to how i can avoid having problems of access denied above.
thank you.
zhen



Jul 19 '05 #3
I have the same problem
I try to improve the security on the mysql and now I can't get into it.
I get this massage.

“Access denied for user: '@localhost' to database 'mysql' ”

Is the same throw webmin or phpMyAdmin

Can anybody please help

I’m runnin Redhat 7.3 and mysql 3.23.56
/harly

c_chen wrote:
Hi, i am a beginner in PHP and mySQL.
Whenever I try to connect my php and mysql
database, i get this error.:
MySQL error : access denied for myuser@localhos t (Using password:yes)

I have created a database called mydatabase at the SQLmonitor,
mySQL> create database mydatabase;

then i try to grant the access to mydatabase by
mySQL>GRANT usage on mydatabase.* to myuser@localhos t;
mySQL>GRANT ALL PRIVILEGES on mydatabase.* to myuser@localhos t;
mySQL>exit
mySQL>SET PASSWORD FOR myuser = Password('hello world');
I modified the php file with the database username as myuser, password as
helloworld,
host as localhost, database name as mydatabase.

Please advice as to how i can avoid having problems of access denied above.
thank you.
zhen



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2554
by: Cathy Hui | last post by:
Do u know why do i get the following message when trying to build the MySql-Python (1.2.0) on my Solaris 8 system? (with mysql 4.0.21 and python 2.4). thanks! error mesg: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1
0
3517
by: Lenz Grimmer | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, MySQL 4.0.14, a new version of the popular Open Source/Free Software Database, has been released. It is now available in source and binary form for a number of platforms from our download pages at http://www.mysql.com/downloads/ and mirror sites.
0
2884
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
0
2485
by: Dennis Francis B. Tutanes | last post by:
$B$*@$OC$K$J$C$F$*$j$^$9!#(B $B%D%?%M%9(B@TSTI$B$G$9!#(B SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: From: dtutanes To: mysql@lists.mysql.com Subject:
4
5831
by: Adam Smith | last post by:
I have a dedicated server running 'FreeBSD 4.9 STABLE' at a hosting site. They have done some default installations, presumably from the CVS ports package ??. Herein lies the problem, "I do not know" what they have done! At first it was apparent that MySQL was installed mysql_install_db ; GRANT TABLES etc. ??? so I ran "mysql_install_db --force"
3
17795
by: Pugi! | last post by:
On a freshly installed Fedora C3 (incl. webserver apache php mysql) i get the following problem when connecting to mysql through a browser (phpMyAdmin): : #2002 Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock On the website of MySQL this error is mentioned but I found no solution. In /var/log/messages the following log occurs :
1
121524
by: jiing | last post by:
Now let me describe what I have done and my purpose: Originally, I want to user ports to install phpBB But I found that phpBB doesn't support mysql 5.x (but the ports installed mySQL 5.0.0 alpha) so I deinstall mysql5-server and mysql5-client And then I install mysql41-server and mysql41-client on FreeBSD 5.3 by ports but now , mysql is not workable
8
5967
by: sundeep.kumara | last post by:
hi all, I am a newbie .....I have compiled the source code of mysql-4.1.9 on PPC-Linux Its not giving any errors during configure,make or make install. But,when i try to start the server using mysqld_safe...its throwing error like this..
221
367405
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application needs to store entire files, the preferred method is to save the file onto the server’s file-system, and store the physical location of the file in your database. This is generally considered to be the easiest and fastest way to store files. ...
1
3007
by: Steve Ametjan | last post by:
I've been trying to get MySQL-python to install on Leopard for the past couple of days, and I keep running into relatively the same error. I'm hoping that someone on this list will be able to help me out in solving the issue. I'd like to get this solved so I can continue developing with Django using MySQL since that's what my web server uses as well. I'd hate to have to develop using a different database engine on my local...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8855
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6185
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1986
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.