zeusthegreat Posted November 1, 2011 Share Posted November 1, 2011 my wampserver version is WampServer2.2a-x64 i tryed all yesterday to get my mysql_connect.php but i kept on getting a error that indicates that the username or password is incorrect ! ) Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'talos342c'@'localhost' (using password: YES) in C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php on line 19 Call Stack # Time Memory Function Location 1 0.0021 666856 {main}( ) ..\mysql_quicktest.php:0 2 0.0037 672280 require( 'C:\wamp\www\myNewweb\storescripts\connect_to_mysql.php' ) ..\mysql_quicktest.php:3 3 0.0038 673248 mysql_connect ( ) ..\connect_to_mysql.php:19 could not connect to mysql no i have tryed typing in my password and username in add a user a nd giving the user all privileges the server actually delievers the local host page but all i keep getting now is the above error i tryed since to in mysql console window - setting a password for the root folder and now instead of passord :yes i get password no i did flush all privileges when i had set my password in mysql console Link to comment https://forums.phpfreaks.com/topic/250232-connect-to-mysql/ Share on other sites More sharing options...
premiso Posted November 1, 2011 Share Posted November 1, 2011 When you created the user 'talos342c' did you grant him privileges to a database? Here is a decent article about what you need to do when you create a new user: http://www.databasef1.com/tutorial/mysql-create-user.html Link to comment https://forums.phpfreaks.com/topic/250232-connect-to-mysql/#findComment-1283965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.