#2001
Random Post :
- SQLPad – Une application web pour lancer vos requêtes SQL et visualiser les résultats sous la forme de graphiques – Korben
- CentOS – Change hostname
- Apache : reverse proxy https | Vincent Liefooghe
- Unix – Awk : retrieve IP address
- [MySQL] Install MySQL server on Solaris
#1264
vi /etc/sysconfig/network
#2100
#1281
echo "`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'`"
#614
Download generic package (TAR file)
Create group and user :
groupadd mysql useradd -r -g mysql mysql
Create folder and symbolic link :
mkdir /path/to/mysql/install chown -R mysql:mysql /path/to/mysql/install cd /usr/local ln -s /path/to/mysql/install mysql
Extract the archive and install database :
tar xvf /path/to/mysql-VERSION-OS.tar -C /path/to/mysql/install scripts/mysql_install_db --user=mysql cp support-files/my-default.cnf /etc/my.cnf
Update permissions :
chown -R root . chown -R mysql data
Start database :
bin/mysqld_safe --user=mysql &
Update user/host priviliges :
update user set host='%' where host = "<CURRENT_HOSTNAME>";
Stop/Start database :
mysqladmin shutdown bin/mysqld_safe --user=mysql &