User Tools

Site Tools


setuplampubuntu22

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
setuplampubuntu22 [2025/04/28 23:01] tektinkerssetuplampubuntu22 [2025/04/29 00:26] (current) tektinkers
Line 1: Line 1:
 +[[https://docs.tektinkers.com|TinkersDocs Home]]
 +[[https://www.tektinkers.com|Back to tektinkers.com]]
 +
 ====== Commands to Setup a LAMP server in Ubuntu 22. ====== ====== Commands to Setup a LAMP server in Ubuntu 22. ======
  
Line 71: Line 74:
 **MySQL: Creating Users and Databases** **MySQL: Creating Users and Databases**
  
 +//Change "example_database", "example_user" and "password" to whatever you want://
 <code>CREATE DATABASE example_database;</code> <code>CREATE DATABASE example_database;</code>
 <code>CREATE USER 'example_user'@'%' IDENTIFIED BY 'password';</code> <code>CREATE USER 'example_user'@'%' IDENTIFIED BY 'password';</code>
  
-//Change password of users://+//OPTIONAL - Change password of users://
 <code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';</code> <code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';</code>
  
-<code>GRANT ALL ON example_database.* TO 'example_user'@'%';<code>+<code>GRANT ALL ON example_database.* TO 'example_user'@'%';</code>
 <code>exit</code> <code>exit</code>
 \\ \\
setuplampubuntu22.1745881311.txt.gz · Last modified: 2025/04/28 23:01 by tektinkers