Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
JDBC and Relational Databases
need help with mysqldump...
Justin Fox
Ranch Hand
Posts: 802
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
ok I have phptriad.
and I need to make a dump file of my mysql database so I can connect to it via php.
I've tried a million different ways, and nothing seems to work.
This is what I last tried.
mysql> mysqldump -u root -p --databases mycustomballs > backup.sql;
now, it says I have a syntax error and thats it, no specification or anything like that.
and also when i do:
$connection = mysql_connect("localhost","username","password"); // is that the username and password to the database?
Thanks for the help,
Justin Fox
You down with OOP? Yeah you know me!
Paul Campbell
Ranch Hand
Posts: 338
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Two things... there shouldn't be a space between -u and root.
If you are in windows do the following.
mysqldump is standalone application
Copy the path to your MySQL bin folder.
Open a command prompt
Paste your path and type mysqldump -uroot -p mycustomballs >backup.sql
Enter your password
The two armies met. But instead of battle, they decided to eat some pie and contemplate this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
MySql db: how to backup data only and backup tables only
export database in mysql
copy of existing database
Login and Sessions
More...