Find and transfrer mysql database to another computer - mysql

i'm using myaql database for my website which is in my computer.
I'm trying to transfer the database to another computer but I can't find any mysql database file...
My question is if it is possible and how can I do it? (Is there any simple way?)

MYSQL DUMP
It can be used to dump a database or a collection of databases for backup or transfer to another SQL server (not necessarily a MySQL server).

Related

MySQL Import Database, No Inserts

I'm using MySql Workbench and WAMP Server. I have a database on the server and when I click reverse engineering on the workbench it imports the db structure, but not any of the inserts. What do I do to get the db data as well as the structure into the workbench.
Also on a separate point as I was using workbench, i noticed it did not automatically sync with the db on the server, ie. when i insert a new row, it did not reflect in the server.. must I forward engineer the db to the server every time i make a change? So sorry for my lack of understanding
MySql Workbench reverse engineering is only to obtain the Schema of the database.
If you want to search the database, make backups, obtain the schema and much more then you can use phpMyAdmin. There are some installers which configures the whole system to work with WAMP enviromment and includes it, like Xampp or ZendServer;

copy and create new mysql setup on server

Iam a newbie for DB. I have a running database on godaddy's mysql setup. Now i have a new server whose access is not with me. I have to make a file which can install and create new mysql on that server plus it can copy and store specific tables from my current server database too.
I have to give this file to the person who is having the access so that he can execute it and can have all the content. How can i make such a file?
You can use MySQL's mysqldump to take backup of your databases.
Alternatively, You can always backup your database using MySQL GUI tools like SQLyog.
I guess GoDaddy do not allows direct connection for mysqldump to work. In that case you can use SQLyog's HTTP tunneling capability.
Give the generated backup file (created through SQLyog or through mysqldump) to the person who has access and he will upload the file.
Here is the SQLyog's documentation for taking Backup. Select Databases and Tables that you want to backup through wizard.
Hope it helps....

mysql databases

could you guys please explain for me HOW these databases ARE CREATED :
mysql
phpmyadmin
information_schema
performance_schema
I know it's a novice question, I might GUESS the answer for some of them, for example "the reason phpmyadmin database is created" IS because I installed phpmyadmin and this database was created alongside . That's not for sure, so I just need some clarification.
Thank you !
Mysql is a database server. It serves access to databases. It runs on a machine as a service.
Phpmyadmin is a php based tool you install for managing mysql from a web page.
The last two are databases that can be created by an application, such as phpmyadmin, for storing schema information about the rest of the database or tables of a database.
These are the standard set of databases shown when you execute SHOW DATABASES on a clean MySQL install.
mysql - this is created at install of the MySQL server, either by the package management system of your operating system or the script provided as part of the MySQL package
information_schema - meta database, it does not exist on the disk
performance_schema - meta database, but it does store some files on the disk
Any other databases are user/application created.

Can we generate mysql database in perl without connecting to server?

Recently i came across a tool written in tcl which generates a mysql database without connecting to a server. It uses some c libraries, can this be done in perl? Sorry if this is too basic question. This is completely new to me, couldnt find much information.
EDIT:
By "generates a mysql database" i mean it generates a directory with mysql tables. I can create a soft link to that directory in mysql and query data from that
You can generate an SQL file maually that builds up a database when imported into a mysql database. I would advise against manyually creating binary tables and copying them under mysql's data folder.
On the other hand if you want to use SQL databases locally, without having to run a separate server process try SQLite.

transferring data from my database to my friends database

Just created a database in my own MySQL server. Now I want to transfer the data from my MySQL server to one of my friend's MySQL server.
Any idea how this can be done?
Also, how would I do this if I use oracle server?
If you have an access to his database - you can create dblink
Otherwise you have to export a dump and send it to your friend.
I have had to copy full databases (as well as just selected tables) between servers before and a SQL dump can be cumbersome if you have a lot of data. If you have access to both servers you might consider an application called "Navicat". It is a MySQL GUI interface to manage databases.
You can have multiple databases on separate servers open at the same time, and can even "drag and drop" tables between databases and databases between servers.