This is for phpMyAdmin sql databse

形式
Plain text
投稿日時
2023-02-11 11:16
公開期間
無期限
  1. sudo pacman -S nginx
  2. sudo systemctl start nginx
  3. sudo systemctl enable nginx
  4. sudo systemctl status nginx
  5. sudo pacman -S mysql
  6. sudo systemctl enable mysqld
  7. sudo systemctl start mysqld
  8. sudo systemctl status mysqld
  9. # su
  10. # cd /var/lib/mysql
  11. # rm -r *
  12. # sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  13. sudo systemctl enable mysqld
  14. sudo systemctl start mysqld
  15. sudo systemctl status mysqld
  16. sudo mysql_secure_installation
  17. (enter;y;y;y;y;y;y)
  18. mysql -u root -p
  19. sudo pacman -S php php-fpm
  20. sudo systemctl enable php-fpm
  21. sudo systemctl start php-fpm
  22. sudo systemctl status php-fpm
  23. sudo nano /etc/nginx/nginx.conf
  24. location / {
  25. root /usr/share/nginx/html;
  26. index index.html index.htm index.php;
  27. }
  28. location ~ \.php$ {
  29. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  30. fastcgi_index index.php;
  31. root /usr/share/nginx/html;
  32. include fastcgi.conf;
  33. }
  34. sudo systemctl restart nginx
  35. sudo systemctl restart php-fpm
  36. sudo nano /usr/share/nginx/html/info.php
  37. <?php
  38. phpinfo();
  39. ?>
  40. (www) localhost/info.php
  41. sudo pacman -S phpmyadmin
  42. sudo ln -s /usr/share/webapps/phpMyAdmin/ /usr/share/nginx/html/
  43. (cd /usr/share/nginx/html/
  44. sudo chmod 777 50x.html index.html info.php)
  45. sudo systemctl restart nginx
  46. sudo systemctl restart php-fpm
  47. (www) http://localhost/phpMyAdmin/
ダウンロード 印刷用表示

このコピペの URL

JavaScript での埋め込み

iframe での埋め込み

元のテキスト