0
:

 

 

Mysql 5.1

?
  
: 0
, 5.1 arm, 5.5
: 2016-07-10-ubuntu-16.04-xenial-minimal-preview-bpi-m2p
: bananapim2+
: 1 (: 29 2017 09:25)
: 0

https://sonnguyen.ws/install-mysql-5-1-ubuntu-14/
: 0

ftp://ftp.br.freebsd.org/debian-archive/debian-security/pool/updates/main/m/mysql-5.1/
: 0
https://sonnguyen.ws/install-mysql-5-1-ubuntu-14/ , make , :root@bpi-iot-ros:/home/pi/mysql-5.1.65# make
make: *** No targets specified and no makefile found. Stop.
.
: 0
, sudo mkdir /var/lib/mysql ,, ,cd /var/lib/mysql
sudo chown -R mysql:mysql /var/lib/mysql, , :mysql_install_db --user=mysql
:
PHP:
  1. root@bpi-iot-ros-ai:/var/lib/mysql# mysql_install_db --user=mysql
  2. Installing MySQL system tables...
  3.  
  4. Installation of system tables failed! Examine the logs in
  5. /var/lib/mysql for more information.
  6.  
  7. You can try to start the mysqld daemon with:
  8.  
  9. shell> /usr/sbin/mysqld --skip-grant &
  10.  
  11. and use the command line tool /usr/bin/mysql
  12. to connect to the mysql database and look at the grant tables:
  13.  
  14. shell> /usr/bin/mysql -u root mysql
  15. mysql> show tables
  16.  
  17. Try 'mysqld --help' if you have problems with paths. Using --log
  18. gives you a log in /var/lib/mysql that may be helpful.
  19.  
  20. Please consult the MySQL manual section
  21. 'Problems running mysql_install_db', and the manual section that
  22. describes problems on your OS. Another information source are the
  23. MySQL email archives available at http://lists.mysql.com/.
  24.  
  25. Please check all of the above before mailing us! And remember, if
  26. you do mail us, you MUST use the /usr/scripts/mysqlbug script!
  27.  
  28. root@bpi-iot-ros-ai:/var/lib/mysql#
  29.  
?
 
|
:
, .