I'm going thru this instrucion , trying to keep data collected from DHT22 temperatur/humidity sensor on my RaspberryPi2 with Raspbian (Debian9) onboard.
But when it comes to install and use of the DB server, when i try to install MySQL, apt-get installs MariaDB. From this and this link I know why, but i don't want to use MySQL name in my later scripts if my procedures really uses MariaDB.
So please tell my how change below commands to instal MariaDB directly, and login to DB interface without using MySQL name:
sudo apt-get install mysql-server python-mysqldb
mysql -u root -p -h localhost
With those commands MariaDb is the default install for Debain 9. So all you need to do now is apt-get install phpmyadmin
and mysql_secure_installation
. Then you can login and access the interface at localhost/phpmyadmin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.