Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


install_apache_mysql_php_linux_ubuntu_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_apache_mysql_php_linux_ubuntu_server [2020/06/08 23:08] – [Create a new admin user or new root user and password with access from any IP remotely] wikiadmininstall_apache_mysql_php_linux_ubuntu_server [2020/06/08 23:20] (current) – [Create a new admin user or new root user and password with PhpMyAdmin access from any IP remotely] wikiadmin
Line 271: Line 271:
 #1698 - Access denied for user 'root'@'localhost' #1698 - Access denied for user 'root'@'localhost'
 </QUOTE>  </QUOTE> 
-==== Create a new admin user or new root user and password with access from any IP remotely ====+==== Create a new PhpMyAdmin root user and password having PhpMyAdmin access from any IP remotely ====
  
-Using SSH access to the Ubuntu Server, log into the mysql console using as the user root with the password for root that was established when installing MySQL database server on Ubuntu.  This will put us into the console mysql>+Using SSH access to the Ubuntu Server, log into the mysql console using as the MySQL user 'root' and with the password for the user root that was established when installing MySQL database server on Ubuntu.  This will put you/us into the prompt for the console mysql>
  
 <code> <code>
Line 283: Line 283:
 The SSH prompt should change to the MySQL console prompt that looks like this: The SSH prompt should change to the MySQL console prompt that looks like this:
  
-<BLOCK>mysql></BLOCK>+<QUOTE>mysql></QUOTE>
  
 Now, create a new MySQL admin/root user with all privileges including GRANT privileges and make sure that the user can login from any IP remotely rather than only having privileges from @localhost. There are 3 choices of commands in the code block below for creating a new user from the MySQL console prompt; however, only the third choice may actually allow for logging into PhpMyAdmin as a root user from any remote IP. Now, create a new MySQL admin/root user with all privileges including GRANT privileges and make sure that the user can login from any IP remotely rather than only having privileges from @localhost. There are 3 choices of commands in the code block below for creating a new user from the MySQL console prompt; however, only the third choice may actually allow for logging into PhpMyAdmin as a root user from any remote IP.
Line 298: Line 298:
  
 <code> <code>
-CREATE USER 'rootuser'@'%' IDENTIFIED BY 'MyComplex54321Pwd!';+CREATE USER 'rootuser'@'%' IDENTIFIED BY 'YourComplex#54321Pwd!';
  
 </code> </code>
  
-Now, let's grant the new rootuser user all privileges including with Grant Option, like this:+Now, let's grant the new user named 'rootuser' all privileges including the Grant Option, like this:
  
 <code> <code>
Line 308: Line 308:
 </code> </code>
  
-And, then run this command:+And lastly, run this command:
  
 <code> <code>
Line 314: Line 314:
 </code> </code>
  
-Now, go log into phpmyadmin through a webpage on a remote device with the username rootuser and the password you installed for rootuser. You should have success now. +Exit the MySQL console and return to the SSH user prompt, with the exit command: 
 + 
 +<QUOTE>mysql> exit</QUOTE> 
 + 
 +Now, open your web browser and log into PhpMyAdmin through a webpage on a remote device with the username 'rootuserand the password you installed for rootuser. You should have success now. 
    
install_apache_mysql_php_linux_ubuntu_server.1591657690.txt.gz · Last modified: 2020/06/08 23:08 by wikiadmin