Jump to content

I want to know what 's in a database, only issue it 's on a RPi I have tucked away and I only h...


G+_Jason Perry
 Share

Recommended Posts

yeah I would just use the appropriate CLI program to use your DB. If you have a particular query you can run something like

 

ssh user@server -t 'mysql -u root -pPassword dbname -e "SELECT * FROM table"' but you would use something more appropriate for your database type. This is assuming the database runs on a service and isn't just a random database file floating on the RPi

Link to comment
Share on other sites

Jason Perry Ok, so far so good. Do you have any db users created besides root? (root is always limited to the local terminal only.)

 

If you already do, you could plug that user information and the RPi IP into MySQL Workbench and it'll just work.

 

If not, you can follow this guide: https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql

Link to comment
Share on other sites

Yeah, depending on the type of DB, most management clients allow network access (is the DB has been configured to allow-note, most can be set to allow only specific IPs).

MySQL workbench, postgres client, and so on. Travis Hershberger?hit the nail on the head. Workbench has a great GUI, there are others as well, one that runs in Java that my DBA recommend that I can't remember the name of.

Link to comment
Share on other sites

 Share

×
×
  • Create New...