<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Webologist &#187; max sql size</title>
	<atom:link href="http://www.webologist.co.uk/tag/max-sql-size/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webologist.co.uk</link>
	<description>Internet News, Web Design, Development, Hosting and Optimisation</description>
	<lastBuildDate>Thu, 22 Jul 2010 19:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=9639</generator>
		<item>
		<title>What to do if you cannot import a database using phpmyadmin on Jumpline / VDS server?</title>
		<link>http://www.webologist.co.uk/2008/03/what-to-do-if-you-cannot-import.html</link>
		<comments>http://www.webologist.co.uk/2008/03/what-to-do-if-you-cannot-import.html#comments</comments>
		<pubDate>Fri, 21 Mar 2008 14:48:00 +0000</pubDate>
		<dc:creator>Webologist</dc:creator>
				<category><![CDATA[Web Administration]]></category>
		<category><![CDATA[importing using command line]]></category>
		<category><![CDATA[jumpline]]></category>
		<category><![CDATA[max sql size]]></category>
		<category><![CDATA[myswql database]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[vds]]></category>

		<guid isPermaLink="false">http://webologist.co.uk/?p=74</guid>
		<description><![CDATA[What to do if you cannot import a database using phpmyadmin on Jumpline / VDS server? This problem has come up a few times: I am trying to restore my database from an original one that was backed up. I&#8217;m in PHPMyAdmin and the max file size for database uploading is 2MB.. Well I need at least 8MB in order to complete the restore. I have already zipped the file and it is 4MB (original 17MB) Can someone help? I had this problem. The proper solution is to use the command line, and not phhmyadmin. But, you can modify the config files to allow this. Need to locate a file called /etc/php.d/99user.ini (or maybe create the file) and input this (or something similar, i.e. 8M if you will never require more): upload_max_filesize = 26M memory_limit = 26M post_max_size = 26M This is normally done in the php.ini file, but on our servers we cannot modify this. Here is what it ways in the php.ini: Quote: # # The settings in this file are optimized for the VDS hosting environment. # # This file is read-only. If you need to alter these values, or add new # settings, please create or [...]]]></description>
			<content:encoded><![CDATA[<!--CusAds1--><p>What to do if you cannot import a database using phpmyadmin on Jumpline / VDS server? This problem has come up a few times:</p>
<blockquote><p>I am trying to restore my database from an original one that was backed up. I&#8217;m in PHPMyAdmin and the max file size for database uploading is 2MB.. Well I need at least 8MB in order to complete the restore. I have already zipped the file and it is 4MB (original 17MB)<br />
Can someone help?</p></blockquote>
<p>I had this problem.</p>
<p>The proper solution is to use the command line, and not phhmyadmin. But, you can modify the config files to allow this.</p>
<p>Need to locate a file called /etc/php.d/99user.ini (or maybe create the file) and input this (or something similar, i.e. 8M if you will never require more):</p>
<p>upload_max_filesize = 26M<br />
memory_limit = 26M<br />
post_max_size = 26M</p>
<p>This is normally done in the php.ini file, but on our servers we cannot modify this. Here is what it ways in the php.ini:</p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center">
<tbody>
<tr>
<td><span class="genmed"><strong>Quote:</strong></span></td>
</tr>
<tr>
<td class="quote">#<br />
# The settings in this file are optimized for the VDS hosting environment.<br />
#<br />
# This file is read-only. If you need to alter these values, or add new<br />
# settings, please create or edit the file /etc/php.d/99user.ini instead.<br />
# Any option set that file will override these.<br />
#<br />
# For documentation on these settings, please see<br />
# <a href="http://www.php.net/manual/en/ini.php#ini.list" target="_blank">http://www.php.net/manual/en/ini.php#ini.list</a><br />
#<br />
# You must restart the VDS using the VDS Manager for any configuration<br />
# changes to take effect.<br />
#</td>
</tr>
</tbody>
</table>
<p>However, you can use the command line to fix/manage the database, and there are no limitations. I struggled, even with allowing larger files, and a friend simply asked &#8220;why are you using php to import to mysql?&#8221;.</p>
<p>This works on Ubuntu servers, i assume also on Jumpline&#8230;.</p>
<table border="0" cellspacing="1" cellpadding="3" width="90%" align="center">
<tbody>
<tr>
<td><span class="genmed"><strong>Quote:</strong></span></td>
</tr>
<tr>
<td class="quote">root@account:/var/www/domain# mysql -u root -p<br />
Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 55<br />
Server version: 5.0.38-Ubuntu_0ubuntu1.1-log Ubuntu 7.04 distributionmysql&gt; drop database yourdatabase(that has been backed up)<br />
mysql&gt; create database yourdatabase<br />
mysql&gt; exit<br />
root@account:/var/www/domain# mysql -u root -p yourdatabase &lt;&gt;</td>
</tr>
</tbody>
</table>
<p>This does the following:<br />
Open up MySQL<br />
Delete old database (not always required, try first without doing this)<br />
Create a new blank database<br />
Import old database.sql  (i.e. your backup) into the newly created database</p>
<p>Fingers crossed, this will work. If it does not, don&#8217;t blame me, as I am a nooob too, and all of this is from a transcript a friend sent me after fixing my database problems.</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.webologist.co.uk/2008/03/what-to-do-if-you-cannot-import.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
