Hi Friends I'm new to mysql but i know how to create user,database, table etc.
Earlier i use to work with ms access as backend. In ms access i had .*mdb file which i can put in my project folder and give it to anybody, so that the user can use my application without worrying about database.
but in MySQL i don't know how to copy database file and put in my project folder so that i can give it to other. and they can use my application without any worries......
plz help.... tell me if i'm wrong in my concept.....
Thanks in advance :))
You use mysqldump to dump the structure and contents of the database into a file, and then give that to the other person to load into their database server.
Related
I have created a site that uses MySQL and I want to get it online.
My question is:
What happens with the database that I created?
Will it automatically be saved in the host?
Will all the tables etc. remain the same?
Also, I have created an update module which connects to the database to store new data.
What happens in than case?
If anyone knows details about the whole process.
Please let me know!
Thanks in advance!
If you use local database for development, you need to export database from local database and import them into the database of your hosing provider or any other online database.
If you developed your site using the online database like database provided by the hosting site, there will be data and database as it is.
In your case the database is stored locally. So every change you make during development will be reflected only if your local database is imported to online database.
Here is what I am dealing with, and I apologize for not being very sure of what I am doing.
I am trying to import a sql database dump file into xampp so that I can run a friends application.
I cloned the repository and put the code base into my htdocs folder. However, it needs to communicate with the database to run.
I have the dump file however when I go to import it I get the following:
Error
SQL query:
DROP TABLE IF EXISTS `sl_address`
MySQL said: Documentation
#1046 - No database selected
Do I need to create a database to dump into before I import the sql dump file? If so, does it matter what I name it, if it does how do I know what to name it?
I imagine if I don't name it correctly that the application won't be able to communicate with it.
I am really new to all this so I appreciate any help I can get. Thank you!
I think you need to create a database and select it before you run the SQL script that was generated by the dump.
Something like this:
create database newdb;
use newdb;
then the rest of your script.
Bobby
I have MyBB installed on my server and apparently the template sets are stored via MySQL database instead of downloaded to the remote server. I would like to set up a path in Dreamweaver so I can directly edit template sets without having to go into the acp in MyBB. Otherwise, there's really no way to test locally unless I set up a database on my machine and it wouldn't make sense having two databases with the same entries. Has anyone managed to set up an ftp path through Dreamweaver that will link to a MySQL database, or is this not possible? Thanks in advance.
Has anyone managed to set up an ftp path through Dreamweaver that will
link to a MySQL database, or is this not possible?
Not possible. Dreamweaver will let you create a connection to a MySQL database to query it but you cannot affect the database structure from within Dreamweaver's interface.
Is it possible to change the location/path/directory/folder of a specific database? I hope the answer is not "no".
I know that there is a "datadir" setting in
"X:\Program Files\MySQL\MySQL Server x.x\my.ini"
file in which I can change the path for all databases. However, I want some specific databases to be specific location.
Example, I want “sales” database to be in “C:\sales\db\” folder and “hr” database to be in “C:\hr\db” folder. (Please don’t suggest of placing them in “C:\db\sales” and “C:\db\hr” folder respectively).
If it helps: I’m running MySql 5.1 under Windows XP SP3. I’m used to MS SQL Server’s ability to place database files on (restore to or attach from) user-specify location. I’m new to MySql.
Thanx in advance.
I found this answer using symbolic link... Maybe this help to you..
http://dev.mysql.com/doc/refman/5.0/en/symbolic-links.html
I have an ASP.NET project under development with my team. and I want to create a database and share with with my teammates . So that they can make edits (Add table etc). When I open the database thats in the project It give me the following error.
One or more files do not match the primary file of the database. If you are attempting to attach a database, retry the operation with the correct files. If this is an existing database, the file may be corrupted and should be restored from a backup.
An attempt to attach an auto-named database for file xxxx.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Please help whats wrong!
at the end of the day, I want a database to share it with a team (or even better I want to host a database somewhere so that all of us can connect to it for FREE)
Please Help!.
Thank you for your time.
If you want to share a database, it's better if you create DB project form Visual Studio templates so you can have project that contain all your database objects as files, and by compare your project with your local DB you can merge the change from the DB to the project or from the project to the DB you can also create script for the data that should be exist in the DB and this script can run after deploy your DB project.
So here the scenario,
You create a local DB, and you create some tables
You create DB project inside your solution
You compare the DB with your DB project
You write the update of the compare which is some tables files
You check-in DB in TFS
Other developer Check-out the solution including DB project
Compare the DB project with local DB
Write update to the local DB
Now the other developer has the same DB
Thanks
M.Radwan