'Could not Connect: Access denied for user 'smdg'@'localhost' (using password: YES)'
connection:
Expand|Select|Wrap|Line Numbers
- define('DB_NAME', 'testdb');
- define('DB_USER', 'smdg');
- define('DB_PASSWORD','samplepass');
- define('DB_HOST', 'localhost');
- $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD, '3306');
Expand|Select|Wrap|Line Numbers
- /* Authentication type and info */
- $cfg['Servers'][$i]['auth_type'] = 'cookie';
- $cfg['Servers'][$i]['user'] = 'smdg';
- $cfg['Servers'][$i]['password'] = '';
- $cfg['Servers'][$i]['extension'] = 'mysqli';
- $cfg['Servers'][$i]['AllowNoPassword'] = true;
- $cfg['Lang'] = '';
- /* Bind to the localhost ipv4 address and tcp */
- $cfg['Servers'][$i]['host'] = '127.0.0.1';
- $cfg['Servers'][$i]['connect_type'] = 'tcp';