0
我运行WAMP,并尝试连接到数据库,但我得到了笨3错误连接到数据库
Unable to connect to your database server using the provided settings.
的FAQ /我做了什么:
- 我自动加载在配置数据库库.PHP
- 我的phpMyAdmin的没有任何的用户名,并通过设置
- 这是database.php中
$db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => '', 'password' => '', 'database' => 'ciintro', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => TRUE, 'db_debug' => TRUE, 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'autoinit' => TRUE, 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE );
尝试使用简单index.php中的mysql_connect(),看看是否可行 – 2014-11-21 03:14:50
我解决了这个问题,用户名应该等于'root'。 – 2014-11-21 03:25:09