Editing Pi MySql
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | = next mysql | + | = next mysql = |
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
− | |||
sudo apt-get install mysql-server --fix-missing | sudo apt-get install mysql-server --fix-missing | ||
− | |||
set password ****** same as for others | set password ****** same as for others | ||
− | |||
sudo apt-get install mysql-client php5-mysql | sudo apt-get install mysql-client php5-mysql | ||
− | |||
sudo apt-get install mysql-workbench | sudo apt-get install mysql-workbench | ||
</pre> | </pre> | ||
− | mySql workbench now on menu | + | mySql workbench now on menu |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == enable remote access == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | ||
If your issue is not able to remotely connect with MySQL on Raspberry Pi, then try below steps. I had the same issue and got it resolved by performing below commands. | If your issue is not able to remotely connect with MySQL on Raspberry Pi, then try below steps. I had the same issue and got it resolved by performing below commands. | ||
<pre> | <pre> | ||
Line 65: | Line 28: | ||
</pre> | </pre> | ||
− | + | later might want to look at https://serverfault.com/questions/139323/mysql-bind-to-more-than-one-ip-address | |
− | |||
== make non root user == | == make non root user == | ||
− | This can be done in the workbench | + | This can be done in the workbench |
how do we allow them remote access and access to our db and table? | how do we allow them remote access and access to our db and table? | ||
== misc == | == misc == | ||
+ | |||
Line 110: | Line 73: | ||
pip install pymysql | pip install pymysql | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Arduino/RaspberryPi]] | [[Category:Arduino/RaspberryPi]] |