You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Answer the following, change the root password if needed
Enter current password for root (enter for none): Enter
Switch to unix_socket authentication [Y/n]: Enter
Change the root password? [Y/n]: N
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tablse now? [Y/n]: Y
mysql -u root -p
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password'
GRANT ALL PRIVILEGES ON DBName.* TO 'admin'@'localhost'
SQL Password Reset
// https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html
sudo mysql -u root -p
ALTER USER 'user'@'localhost' IDENTIFIED BY 'newpass';
FLUSH PRIVILEGES;
Install PHP Application Server
sudo pacman -S php php-fpm
sudo vim /etc/php/php.ini
// Uncomment the following, phpMyAdmin requires iconv and mysqli
;extensions=iconv
;extensions=mysqli
;extensions=pdo_mysql