Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
nndocs:lamp [2018/07/04 00:30] – Add FIXMEs. naptasticnndocs:lamp [2020/12/30 23:36] (current) – [MySQL] things change naptastic
Line 70: Line 70:
   * ''apt-get -y install mysql-server mysql-client''   * ''apt-get -y install mysql-server mysql-client''
  
-As part of thisyou will create a MySQL root password. This doesn'have to be the same as the system root password. +Since Debian BusterI haven'needed a .my.cnfIf you need itthe format of ~/.my.cnf is as follows:
- +
-=== Create /root/.my.cnf === +
- +
-If you ever want to do anything from the command line you will either need this fileor a wig before you're doneThe format is as follows:+
  
   [client]   [client]
Line 80: Line 76:
   password="password"   password="password"
  
-You can create a .my.cnf file in any user's home directory so they can do mysql stuff from the shell without having to constantly supply their MySQL username and password. It should go without saying, but I'll say it anyway: don't give user accounts access to the MySQL root password.+You can create a .my.cnf file in any user's home directory so they can do mysql stuff from the shell without having to constantly supply their MySQL username and password. 
 + 
 +  * Don't give users the root password or grant them privileges on *.*. 
 +  * chmod 600 
 ==== PHP ==== ==== PHP ====
  
nndocs/lamp.txt · Last modified: 2020/12/30 23:36 by naptastic
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki