MySQL | tags

MySQL | Debian/Ubuntu + Nginx + PHP(5|7)-FPM + MySQL + Redis with VestaCP

PHP Ubuntu MySQL Command Nginx Debian VestaCP

apt-get update; apt-get upgrade -y cd /tmp wget http://vestacp.com/pub/vst-install.sh #wget http://vestacp.com/pub/vst-install-debian.sh #sed -i 's/php5/php7.0/g' vst-install-debian.sh bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd.. อ่านต่อ ( read more» )

MySQL | How to upgrade MySQL 5.5.x to 5.6.x with DirectAdmin

Command Debian MySQL DirectAdmin

MySQL | Change charset in MySQL 5.5 with my.cnf

Command MySQL

1.Login msyql command mode and query mysql check character below mysql> show variables like %character%;show variables like %collation%; 2.edit my.cnf [mysql] default-character-set=utf8 [mysqld] collation_server=utf8_general_ci character_set_serv.. อ่านต่อ ( read more» )

MySQL | MySQL Log DirectAdmin Debian

Debian DirectAdmin MySQL Command

find mysqld.log/mysql.log & slowly log file in DirectAdmin(Debian) 1.Login mysql command root@sv:/# mysql -u dbuser -p 2.Query mysql variables mysql> show variables like %log%; 3. View path log file in variables general_log_file log_error slow_quer.. อ่านต่อ ( read more» )

MySQL | Recover MySQL Database root password

Database MySQL Linux Command

Ploblem: forget MySQL root password Solutions: Recover(hack) MySQL root password 1. Login as root 2. Stop the MySQL server by using command /etc/init.d/mysql stop #or ps aux | grep mysql kill -9 mysqlID 3. Start MySQL server without password (more&he.. อ่านต่อ ( read more» )

MySQL | Optimize MySQL all Databases mysqlcheck

Linux Command Database DirectAdmin MySQL mysqlcheck

หลังจากที่เราใช้ MySQL Tunner ไปแล้ว พบว่า จำเป็นต้อง optimize tables แต่จะทำไงให้ optimize database ได้ทุกตาราง ซึ่งมีวิธีง่ายๆ สามารถใช้คำสั่งนี้ในการ Optimize MySql ทุก databases ประมานี้ เครื่อง Linux ทั่วไป mysqlcheck -Aao --auto-repair --silent.. อ่านต่อ ( read more» )

MySQL | MySQLTunner.pl Tuning-Primer.sh

Perl MySQL Linux Database

พักนี้ขอวุ่นๆเรื่อง MySQL หน่อย เพราะว่า Dedicated Server ของลูกค้าๆ จะกิน MySQL ขึ้นมาหน่อยนึง เลยต้องมีอุปกรณ์ที่ช่วยจูน MySQL ให้เหมาะสมกับเครื่อง Server และการทำงานของ Server ซึ่ง MySQLTunner เป็น perl script ที่ฟรี ใช้งานได้ไม่ยาก ทำตามขั้นตอนที.. อ่านต่อ ( read more» )

MySQL | วิธีซ่อมแซ่ม Database MySQL ง่ายๆด้วย myisamchk

Database CentOS DirectAdmin Linux Debian myisamchk Command MySQL

วิธีซ่อมแซม Database ง่ายๆ (Repair Database) ด้วยการเข้า SSH แล้วไปยังโฟลเดอร์ mysql ที่ OS Linux แต่ละอย่างเก็บไว้ Debian myisamchk -r /home/mysql/*/*.MYI Debian + Directadmin /usr/local/mysql/bin/myisamchk -r /home/mysql/*/*.MYI CentOS myisamchk -r.. อ่านต่อ ( read more» )