[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

mysql-workbench one export file for many usernames, dbnames

I am learning from a tutorial which has different usernames, different database-names,  same localhost.  Plus I think I did this with another tutorial.

input comes from different (small) .sql files where I copy pasted into windows7 mysql-workbench (lastest 6). Difficult to find all the tutorial code .sql files (but I tested with php and mysql is working)


Can I create one export file where if I lose the data I import restore from one sql file.
I do not want to modify php of tutorial to only have (one username)/ (one dbname)
0
rgb192
Asked:
rgb192
  • 2
  • 2
  • 2
2 Solutions
 
Dan CraciunIT ConsultantCommented:
You can export your users' table (mysql/users). Then, on reinstall/move you just import that table.

HTH,
Dan
0
 
mankowitzCommented:
If you want to save all the tables you are currently working with, Do this from within workbench.

1. Click on "DATA EXPORT" from the Navigator tab.
2. Select all the tables you want to save. (probably all of them).
3. Click on "Export to self-contained file" and then "Start Export".
0
 
rgb192Author Commented:
data-export

many databases

while there is a
mysql database

there is no users database
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
Dan CraciunIT ConsultantCommented:
There is a users table, inside the mysql database.

PS: if you don't want to be constrained by Workbench's capabilities, you can use the standard built-in mysqldump: https://dev.mysql.com/doc/refman/5.1/en/mysqldump.html
0
 
mankowitzCommented:
There is a user table; to see it, do this

select * from mysql.user
0
 
rgb192Author Commented:
users are listed in mysql database

I will use mysql workbench for now.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now