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 134: Line 134:
  
 
     use pi_db
 
     use pi_db
=== create db and user ===
 
 
<pre>
 
 
CREATE DATABASE pi_db;
 
With that database instance created successfully, I then created the MariaDB user with the relevant privileges for accessing that database instance:
 
 
 
CREATE USER 'pi_user'@'localhost' IDENTIFIED BY 'insert password';
 
GRANT ALL ON pi_db.* TO 'pi_user'@'localhost';  -- needs to have tcpip address in it for remote addess
 
GRANT ALL PRIVILEGES ON example.* TO 'pi_user'@'%' IDENTIFIED BY 'the_password';  -- % is the tcip wild card  how about limit to 192 .... think this is correct
 
 
there is a flush command I have lost.
 
 
use mysql;
 
update user set password=PASSWORD("password here"), plugin = '' where User='root';
 
flush privileges;
 
 
 
sudo mariadb -u root -p  -- seemed to work
 
 
</pre>
 
  
 
= Links some useful =
 
= Links some useful =
Line 171: Line 149:
 
*'''[https://howtoraspberrypi.com/mariadb-raspbian-raspberry-pi/ How to install MariaDB on Raspbian and the Raspberry Pi ]'''
 
*'''[https://howtoraspberrypi.com/mariadb-raspbian-raspberry-pi/ How to install MariaDB on Raspbian and the Raspberry Pi ]'''
 
*'''[https://www.techcoil.com/blog/setting-up-wordpress-on-raspberry-pi-3-with-raspbian-stretch-lite-nginx-mariadb-and-php-7-as-the-lemp-stack/ Setting up WordPress on Raspberry Pi 3 with Raspbian Stretch Lite, nginx, MariaDB and PHP 7 as the LEMP stack - Techcoil Blog ]'''
 
*'''[https://www.techcoil.com/blog/setting-up-wordpress-on-raspberry-pi-3-with-raspbian-stretch-lite-nginx-mariadb-and-php-7-as-the-lemp-stack/ Setting up WordPress on Raspberry Pi 3 with Raspbian Stretch Lite, nginx, MariaDB and PHP 7 as the LEMP stack - Techcoil Blog ]'''
 
+
ab.3..0l2j0i7i30k1j0j0i7i30k1l2j0j0i7i30k1l2j0i7i10i30k1.28319.34800.0.35303.10.10.0.0.0.0.1082.1445.0j2j7-1.3.0....0...1c.1.64.psy-ab..7.2.362....0.ZHfm-Vq1Mk0 mariadb python - Google Search ]'''
 
+
*'''[https://www.google.com/search?num=50&safe=off&client=opera&ei=a-JjWsK7MYKgjwT4mqagDA&btnG=Search&q=administer+mariadb+open+source administer mariadb open source - Google Search ]'''
 
*'''[https://mariadb.com/kb/en/library/mariadb-administration/ MariaDB Administration - MariaDB Knowledge Base ]'''
 
*'''[https://mariadb.com/kb/en/library/mariadb-administration/ MariaDB Administration - MariaDB Knowledge Base ]'''
 
*'''[https://mariadb.com/kb/en/library/applications-supporting-mariadb/ Applications Supporting MariaDB - MariaDB Knowledge Base ]'''
 
*'''[https://mariadb.com/kb/en/library/applications-supporting-mariadb/ Applications Supporting MariaDB - MariaDB Knowledge Base ]'''
 
*'''[https://www.devart.com/dbforge/mysql/studio/mariadb-gui-client.html MariaDB GUI - MariaDB Admin and Management Tools for Windows ]'''
 
*'''[https://www.devart.com/dbforge/mysql/studio/mariadb-gui-client.html MariaDB GUI - MariaDB Admin and Management Tools for Windows ]'''
 
*'''[https://www.tutorialspoint.com/mariadb/mariadb_administration.htm MariaDB Administration ]'''
 
*'''[https://www.tutorialspoint.com/mariadb/mariadb_administration.htm MariaDB Administration ]'''
 
*'''[https://www.raspberrypi.org/forums/viewtopic.php?t=72076 MySql password? - Raspberry Pi Forums ]'''
 
*'''[https://lb.raspberrypi.org/forums/viewtopic.php?f=91&t=196952 MySQL root password? - Raspberry Pi Forums ]'''
 
*'''[http://www.raspberry-projects.com/pi/software_utilities/web-servers/mysql MySQL – Raspberry Pi Projects ]'''
 
*'''[https://mariadb.com/kb/en/library/configuring-mariadb-with-mycnf/ Configuring MariaDB with my.cnf - MariaDB Knowledge Base ]'''
 
*'''[https://www.cyberciti.biz/faq/tag/etcmysqlmariadb-conf-d50-server-cnf/ /etc/mysql/mariadb.conf.d/50-server.cnf HowTo - Linux / Unix Q & A from nixCraft ]'''
 
*'''[https://mariadb.org/download/ Download - MariaDB.org ]'''
 
*'''[https://en.wikipedia.org/wiki/MariaDB MariaDB - Wikipedia ]'''
 
*'''[http://www.opencircuits.com/Pi_MySql#Possible_useful_sql_commands Pi MySql - OpenCircuits ]'''
 
  
  
 
[[Category:Arduino/RaspberryPi]]
 
[[Category:Arduino/RaspberryPi]]

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)