Solved

mysql-workbench one export file for many usernames, dbnames

Posted on 2014-03-22
6
361 Views
Last Modified: 2014-03-25
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
Comment
Question by:rgb192
  • 2
  • 2
  • 2
6 Comments
 
LVL 34

Expert Comment

by:Dan Craciun
Comment Utility
You can export your users' table (mysql/users). Then, on reinstall/move you just import that table.

HTH,
Dan
0
 
LVL 24

Expert Comment

by:mankowitz
Comment Utility
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
 

Author Comment

by:rgb192
Comment Utility
data-export

many databases

while there is a
mysql database

there is no users database
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 34

Accepted Solution

by:
Dan Craciun earned 250 total points
Comment Utility
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
 
LVL 24

Assisted Solution

by:mankowitz
mankowitz earned 250 total points
Comment Utility
There is a user table; to see it, do this

select * from mysql.user
0
 

Author Closing Comment

by:rgb192
Comment Utility
users are listed in mysql database

I will use mysql workbench for now.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now