jkewlo Posted April 30, 2007 Share Posted April 30, 2007 could somone please help me it dosnt matter what i try i always get PHP Warning: "mysql_connect() [function.mysql-connect]: Access denied for user 'asu_ice'@'localhost' (using password: YES)" i dont know what is going on.... it has to be something easy.. Link to comment https://forums.phpfreaks.com/topic/49317-solved-access-denied-for-localhost/ Share on other sites More sharing options...
trq Posted April 30, 2007 Share Posted April 30, 2007 Have you added a valid user to your database? Link to comment https://forums.phpfreaks.com/topic/49317-solved-access-denied-for-localhost/#findComment-241653 Share on other sites More sharing options...
cksrealm Posted April 30, 2007 Share Posted April 30, 2007 Yes your right it is a simple issues, your using either the wrong username or the wrong password within your script to access the database, either that or the permission within mysql are wrong for the user. Once you change the privileges within mysql don't forget to flush them so that they take affect Link to comment https://forums.phpfreaks.com/topic/49317-solved-access-denied-for-localhost/#findComment-241656 Share on other sites More sharing options...
jkewlo Posted April 30, 2007 Author Share Posted April 30, 2007 what do u mean if u have msn i could give u my info so u could fix this problem.. my msn [email protected] this is what i have in my phpmyadmin localhost * Server version: 4.1.21-standard-log * Protocol version: 10 * Server: Localhost via UNIX socket * User: asu@localhost * MySQL charset: UTF-8 Unicode (utf8) * MySQL connection collation: armscii8_binarmscii8_general_ciascii_binascii_general_cibig5_binbig5_chinese_cibinarycp1250_bincp1250_croatian_cicp1250_czech_cscp1250_general_cicp1251_bincp1251_bulgarian_cicp1251_general_cicp1251_general_cscp1251_ukrainian_cicp1256_bincp1256_general_cicp1257_bincp1257_general_cicp1257_lithuanian_cicp850_bincp850_general_cicp852_bincp852_general_cicp866_bincp866_general_cicp932_bincp932_japanese_cidec8_bindec8_swedish_cieuckr_bineuckr_korean_cigb2312_bingb2312_chinese_cigbk_bingbk_chinese_cigeostd8_bingeostd8_general_cigreek_bingreek_general_cihebrew_binhebrew_general_cihp8_binhp8_english_cikeybcs2_binkeybcs2_general_cikoi8r_binkoi8r_general_cikoi8u_binkoi8u_general_cilatin1_binlatin1_danish_cilatin1_general_cilatin1_general_cslatin1_german1_cilatin1_german2_cilatin1_spanish_cilatin1_swedish_cilatin2_binlatin2_croatian_cilatin2_czech_cslatin2_general_cilatin2_hungarian_cilatin5_binlatin5_turkish_cilatin7_binlatin7_estonian_cslatin7_general_cilatin7_general_csmacce_binmacce_general_cimacroman_binmacroman_general_cisjis_binsjis_japanese_ciswe7_binswe7_swedish_citis620_bintis620_thai_ciucs2_binucs2_czech_ciucs2_danish_ciucs2_estonian_ciucs2_general_ciucs2_icelandic_ciucs2_latvian_ciucs2_lithuanian_ciucs2_persian_ciucs2_polish_ciucs2_roman_ciucs2_romanian_ciucs2_slovak_ciucs2_slovenian_ciucs2_spanish2_ciucs2_spanish_ciucs2_swedish_ciucs2_turkish_ciucs2_unicode_ciujis_binujis_japanese_ciutf8_binutf8_czech_ciutf8_danish_ciutf8_estonian_ciutf8_general_ciutf8_icelandic_ciutf8_latvian_ciutf8_lithuanian_ciutf8_persian_ciutf8_polish_ciutf8_roman_ciutf8_romanian_ciutf8_slovak_ciutf8_slovenian_ciutf8_spanish2_ciutf8_spanish_ciutf8_swedish_ciutf8_turkish_ciutf8_unicode_ci Documentation * Create new database: Documentation No Privileges * Show MySQL runtime information * Show MySQL system variables Documentation * Processes Documentation * Character Sets and Collations * Storage Engines * Databases * Export * Import * Log out Info i am very lost.. when it comes to this the DB UN PW i created for it $db_host = 'localhost'; $db_user = 'asu_ice'; $db_pass = 'asuice'; $db_name = 'asu_Box'; i dont know why they are not working.. Link to comment https://forums.phpfreaks.com/topic/49317-solved-access-denied-for-localhost/#findComment-241662 Share on other sites More sharing options...
jkewlo Posted April 30, 2007 Author Share Posted April 30, 2007 Ha this sucks ok i forgot to add the user to the database..... errr what a retard.... der derrr Link to comment https://forums.phpfreaks.com/topic/49317-solved-access-denied-for-localhost/#findComment-241671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.