<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1005935" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1005935</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031624</link>
    <description> &lt;p&gt;if&lt;br /&gt;
mysqldump &amp;lt;database&amp;gt;&lt;br /&gt;
works I&#039;m not amazed about all the stupid security problems we have at all.&lt;/p&gt;
&lt;p&gt;it should be at least&lt;br /&gt;
mysqldump -u &amp;lt;dbuser&amp;gt; -p &amp;lt;database&amp;gt;&lt;br /&gt;
And &amp;lt;b&amp;gt;don&#039;t&amp;lt;/b&amp;gt; put the password on the command-line !!&lt;/p&gt;
&lt;p&gt;If you have written the whole application yourself it could pay off to write the import/export tool yourself, too.&lt;/p&gt;
&lt;p&gt;Exporting the data and importing the &quot;core&quot; is always a good oportunity to sanitize the whole database.&lt;br /&gt;
Since all your db-maintainance functions are in a lib/module anyway that&#039;s usually straight forward.&lt;/p&gt;
 </description>
     <pubDate>Fri, 23 Jun 2000 10:24:00 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1031624 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031623</link>
    <description> &lt;p&gt;Well if you are on the same server with the mysql, and you have permissions to do so, yes it should work just fine.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://www.were-here.com/forums/index.php&quot; class=&quot;bb-url&quot;&gt;We&#039;re Here Forums!&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 18 Jun 2000 06:06:00 +0000</pubDate>
 <dc:creator>werehere</dc:creator>
 <guid isPermaLink="false">comment 1031623 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031622</link>
    <description> &lt;p&gt;So, I would type in something like:&lt;/p&gt;
&lt;p&gt;mysqldump databasename &amp;gt; /home/webdevhq/webdevhq-www/file.sql and that would work?&lt;/p&gt;
 </description>
     <pubDate>Sat, 17 Jun 2000 15:07:00 +0000</pubDate>
 <dc:creator>Matt Kaufman</dc:creator>
 <guid isPermaLink="false">comment 1031622 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031621</link>
    <description> &lt;p&gt;If you have appropriate permissions and MySQL is on the server, then the origionaly posted solution is correct:&lt;/p&gt;
&lt;p&gt;mysqldump databasename &amp;gt; /path/to/output/file.sql&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
&lt;a href=&quot;http://www.were-here.com/forums/index.php&quot; class=&quot;bb-url&quot;&gt;We&#039;re Here Forums!&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2000 05:47:00 +0000</pubDate>
 <dc:creator>werehere</dc:creator>
 <guid isPermaLink="false">comment 1031621 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031620</link>
    <description> &lt;p&gt;Doesn&#039;t it depend if you are logged into the mySQL server vs having it remote?&lt;/p&gt;
&lt;p&gt;For example, you can&#039;t do a &quot;SELECT INTO OUTFILE&quot; in mySQL if you&#039;re not logged into the database machine. Nor can you do a &quot;LOAD DATA FROM INFILE&quot; in earlier versions if you&#039;re not on the machine -- you can now do a &quot;LOAD DATA FROM LOCAL INFILE&quot;.&lt;/p&gt;
&lt;p&gt;Also, don&#039;t you need special permissions to run the mysqldump program?&lt;/p&gt;
&lt;p&gt;How about writing a perl script that reads through your database catalog and exports all tables in .csv format? Then just use the LOAD DATA to re-load the tables.&lt;/p&gt;
&lt;p&gt;Ralph&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
 &lt;a href=&quot;http://www.hockeydb.com&quot; class=&quot;bb-url&quot;&gt;http://www.hockeydb.com&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;[This message has been edited by Ralph Slate (edited 14 June 2000).]&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2000 04:25:00 +0000</pubDate>
 <dc:creator>Ralph Slate</dc:creator>
 <guid isPermaLink="false">comment 1031620 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031619</link>
    <description> &lt;p&gt;ROFL! Try to help somebody and when they fail due to their own ineptitude they go looking for a 2nd opinion rathering than trying to learn from their mistakes. I wish you lots of luck trying to do it a different way.&lt;/p&gt;
 </description>
     <pubDate>Wed, 14 Jun 2000 02:11:00 +0000</pubDate>
 <dc:creator>Maverick</dc:creator>
 <guid isPermaLink="false">comment 1031619 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031618</link>
    <description> &lt;p&gt;That didn&#039;t work, I followed your directions, but it created no files or anything.   &lt;img src=&quot;http://www.webmaster-forums.com/ubb/frown.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt; &lt;/p&gt;
&lt;p&gt;If anybody else knows how to do it, please ICQ me at 73902680.  Thanks.&lt;/p&gt;
 </description>
     <pubDate>Tue, 13 Jun 2000 21:50:00 +0000</pubDate>
 <dc:creator>Matt Kaufman</dc:creator>
 <guid isPermaLink="false">comment 1031618 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/backing-mysql-database#comment-1031617</link>
    <description> &lt;p&gt;Easy as pie.&lt;/p&gt;
&lt;p&gt;Log into your MySQL server with your telnet client. From the command line, type:&lt;/p&gt;
&lt;p&gt;mysqldump databasename &amp;gt; /path/to/output/file&lt;/p&gt;
&lt;p&gt;That will create a text file with all the database info saved, including the appropriate CREATE TABLE and INSERT INTO statements so that the tables can be recreated merely by running that single file via the command line on the new server.&lt;/p&gt;
&lt;p&gt;You can also back up parts of the DB if it&#039;s too large to conveniently back up into a single file. If it&#039;s got 5 big tables, each table can be saved to a different file like:&lt;/p&gt;
&lt;p&gt;mysqldump databasename tablename &amp;gt; /path/to/output/file&lt;/p&gt;
&lt;p&gt;or with 2 tables per output file like:&lt;/p&gt;
&lt;p&gt;mysqldump databasename tablename1 tablename2 &amp;gt; /path/to/output/file&lt;/p&gt;
&lt;p&gt;So, if your files are in /usr/www/username/ on your server and you wanted to back up tables called test1 and test 2 out of a DB named mydatabase, the final syntax for saving it would be:&lt;/p&gt;
&lt;p&gt;mysqldump mydatabase test1 test2 &amp;gt; /usr/www/username/saveddatabase.sql&lt;/p&gt;
 </description>
     <pubDate>Sun, 11 Jun 2000 20:23:00 +0000</pubDate>
 <dc:creator>Maverick</dc:creator>
 <guid isPermaLink="false">comment 1031617 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
