lampTermux icon indicating copy to clipboard operation
lampTermux copied to clipboard

ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'

Open wivulo opened this issue 2 years ago • 2 comments

I can not change default database to mysql

wivulo avatar Mar 10 '23 10:03 wivulo

get out of mysql and then login again with 'mysql -u root -p' it ask you for password just press enter and thats it now you can use 'use mysql'

andresleonardobg avatar May 09 '23 19:05 andresleonardobg

Edit your config.inc.php

  1. cd /data/data/com.termux/files/etc/usr/phpmyadmin
  2. nano config.inc.php3
  3. Edit $cfg['Servers'][$i]['host'] = '127.0.0.1';

$cfg['Servers'][$i]['AllowNoPassword'] = true;

  1. Restart apache and mysql with command lamp

rocketdf avatar Sep 20 '23 13:09 rocketdf