FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Issue with MySQL commands





dwinton
I was able to create a table with 6 lines of code no problem but when I tried to create
Code:
CREATE TABLE `v0_country` (
  `countryId` char(2) NOT NULL default '',
  `name` varchar(100) NOT NULL default '',
  PRIMARY KEY  (`countryId`)
) TYPE=MyISAM;
INSERT INTO `v0_country` VALUES ('AF', 'Afghanistan');
INSERT INTO `v0_country` VALUES ('AL', 'Albania');
INSERT INTO `v0_country` VALUES ('DZ', 'Algeria');
INSERT INTO `v0_country` VALUES ('AS', 'American samoa');
INSERT INTO `v0_country` VALUES ('AD', 'Andorra');
INSERT INTO `v0_country` VALUES ('AO', 'Angola');
INSERT INTO `v0_country` VALUES ('AI', 'Anguilla');
INSERT INTO `v0_country` VALUES ('AQ', 'Antarctica');
INSERT INTO `v0_country` VALUES ('AG', 'Antigua and barbuda');
INSERT INTO `v0_country` VALUES ('AR', 'Argentina');
INSERT INTO `v0_country` VALUES ('AM', 'Armenia');
INSERT INTO `v0_country` VALUES ('AW', 'Aruba');
INSERT INTO `v0_country` VALUES ('AU', 'Australia');
INSERT INTO `v0_country` VALUES ('AT', 'Austria');
INSERT INTO `v0_country` VALUES ('AZ', 'Azerbaijan');
INSERT INTO `v0_country` VALUES ('BS', 'Bahamas');
INSERT INTO `v0_country` VALUES ('BH', 'Bahrain');
INSERT INTO `v0_country` VALUES ('BD', 'Bangladesh');
INSERT INTO `v0_country` VALUES ('BB', 'Barbados');
INSERT INTO `v0_country` VALUES ('BY', 'Belarus');
INSERT INTO `v0_country` VALUES ('BE', 'Belgium');
INSERT INTO `v0_country` VALUES ('BZ', 'Belize');
INSERT INTO `v0_country` VALUES ('BJ', 'Benin');
INSERT INTO `v0_country` VALUES ('BM', 'Bermuda');
INSERT INTO `v0_country` VALUES ('BT', 'Bhutan');
INSERT INTO `v0_country` VALUES ('BO', 'Bolivia');
INSERT INTO `v0_country` VALUES ('BA', 'Bosnia and herzegovina');
INSERT INTO `v0_country` VALUES ('BW', 'Botswana');
INSERT INTO `v0_country` VALUES ('BV', 'Bouvet island');
INSERT INTO `v0_country` VALUES ('BR', 'Brazil');
INSERT INTO `v0_country` VALUES ('IO', 'British indian ocean territory');
INSERT INTO `v0_country` VALUES ('BN', 'Brunei darussalam');
INSERT INTO `v0_country` VALUES ('BG', 'Bulgaria');
INSERT INTO `v0_country` VALUES ('BF', 'Burkina faso');
INSERT INTO `v0_country` VALUES ('BI', 'Burundi');
INSERT INTO `v0_country` VALUES ('KH', 'Cambodia');
INSERT INTO `v0_country` VALUES ('CM', 'Cameroon');
INSERT INTO `v0_country` VALUES ('CA', 'Canada');
INSERT INTO `v0_country` VALUES ('CV', 'Cape verde');
INSERT INTO `v0_country` VALUES ('KY', 'Cayman islands');
INSERT INTO `v0_country` VALUES ('CF', 'Central african republic');
INSERT INTO `v0_country` VALUES ('TD', 'Chad');
INSERT INTO `v0_country` VALUES ('CL', 'Chile');
INSERT INTO `v0_country` VALUES ('CN', 'China');
INSERT INTO `v0_country` VALUES ('CX', 'Christmas island');
INSERT INTO `v0_country` VALUES ('CC', 'Cocos (keeling) islands');
INSERT INTO `v0_country` VALUES ('CO', 'Colombia');
INSERT INTO `v0_country` VALUES ('KM', 'Comoros');
INSERT INTO `v0_country` VALUES ('CG', 'Congo');
INSERT INTO `v0_country` VALUES ('CD', 'Congo');
INSERT INTO `v0_country` VALUES ('CK', 'Cook islands');
INSERT INTO `v0_country` VALUES ('CR', 'Costa rica');
INSERT INTO `v0_country` VALUES ('CI', 'Cote d''ivoire');
INSERT INTO `v0_country` VALUES ('HR', 'Croatia');
INSERT INTO `v0_country` VALUES ('CU', 'Cuba');
INSERT INTO `v0_country` VALUES ('CY', 'Cyprus');
INSERT INTO `v0_country` VALUES ('CZ', 'Czech republic');
INSERT INTO `v0_country` VALUES ('DK', 'Denmark');
INSERT INTO `v0_country` VALUES ('DJ', 'Djibouti');
INSERT INTO `v0_country` VALUES ('DM', 'Dominica');
INSERT INTO `v0_country` VALUES ('DO', 'Dominican republic');
INSERT INTO `v0_country` VALUES ('TP', 'East timor');
INSERT INTO `v0_country` VALUES ('EC', 'Ecuador');
INSERT INTO `v0_country` VALUES ('EG', 'Egypt');
INSERT INTO `v0_country` VALUES ('SV', 'El salvador');
INSERT INTO `v0_country` VALUES ('GQ', 'Equatorial guinea');
INSERT INTO `v0_country` VALUES ('ER', 'Eritrea');
INSERT INTO `v0_country` VALUES ('EE', 'Estonia');
INSERT INTO `v0_country` VALUES ('ET', 'Ethiopia');
INSERT INTO `v0_country` VALUES ('FK', 'Falkland islands (malvinas)');
INSERT INTO `v0_country` VALUES ('FO', 'Faroe islands');
INSERT INTO `v0_country` VALUES ('FJ', 'Fiji');
INSERT INTO `v0_country` VALUES ('FI', 'Finland');
INSERT INTO `v0_country` VALUES ('FR', 'France');
INSERT INTO `v0_country` VALUES ('GF', 'French guiana');
INSERT INTO `v0_country` VALUES ('PF', 'French polynesia');
INSERT INTO `v0_country` VALUES ('TF', 'French southern territories');
INSERT INTO `v0_country` VALUES ('GA', 'Gabon');
INSERT INTO `v0_country` VALUES ('GM', 'Gambia');
INSERT INTO `v0_country` VALUES ('GE', 'Georgia');
INSERT INTO `v0_country` VALUES ('DE', 'Germany');
INSERT INTO `v0_country` VALUES ('GH', 'Ghana');
INSERT INTO `v0_country` VALUES ('GI', 'Gibraltar');
INSERT INTO `v0_country` VALUES ('GR', 'Greece');
INSERT INTO `v0_country` VALUES ('GL', 'Greenland');
INSERT INTO `v0_country` VALUES ('GD', 'Grenada');
INSERT INTO `v0_country` VALUES ('GP', 'Guadeloupe');
INSERT INTO `v0_country` VALUES ('GU', 'Guam');
INSERT INTO `v0_country` VALUES ('GT', 'Guatemala');
INSERT INTO `v0_country` VALUES ('GN', 'Guinea');
INSERT INTO `v0_country` VALUES ('GW', 'Guinea-bissau');
INSERT INTO `v0_country` VALUES ('GY', 'Guyana');
INSERT INTO `v0_country` VALUES ('HT', 'Haiti');
INSERT INTO `v0_country` VALUES ('HM', 'Heard and mcdonald islands');
INSERT INTO `v0_country` VALUES ('VA', 'Holy see (vatican city state)');
INSERT INTO `v0_country` VALUES ('HN', 'Honduras');
INSERT INTO `v0_country` VALUES ('HK', 'Hong kong');
INSERT INTO `v0_country` VALUES ('HU', 'Hungary');
INSERT INTO `v0_country` VALUES ('IS', 'Iceland');
INSERT INTO `v0_country` VALUES ('IN', 'India');
INSERT INTO `v0_country` VALUES ('ID', 'Indonesia');
INSERT INTO `v0_country` VALUES ('IR', 'Iran, islamic republic of');
INSERT INTO `v0_country` VALUES ('IQ', 'Iraq');
INSERT INTO `v0_country` VALUES ('IE', 'Ireland');
INSERT INTO `v0_country` VALUES ('IL', 'Israel');
INSERT INTO `v0_country` VALUES ('IT', 'Italy');
INSERT INTO `v0_country` VALUES ('JM', 'Jamaica');
INSERT INTO `v0_country` VALUES ('JP', 'Japan');
INSERT INTO `v0_country` VALUES ('JO', 'Jordan');
INSERT INTO `v0_country` VALUES ('KZ', 'Kazakstan');
INSERT INTO `v0_country` VALUES ('KE', 'Kenya');
INSERT INTO `v0_country` VALUES ('KI', 'Kiribati');
INSERT INTO `v0_country` VALUES ('KP', 'Korea, democratic');
INSERT INTO `v0_country` VALUES ('KR', 'Korea, republic of');
INSERT INTO `v0_country` VALUES ('KW', 'Kuwait');
INSERT INTO `v0_country` VALUES ('KG', 'Kyrgyzstan');
INSERT INTO `v0_country` VALUES ('LA', 'Laos');
INSERT INTO `v0_country` VALUES ('LV', 'Latvia');
INSERT INTO `v0_country` VALUES ('LB', 'Lebanon');
INSERT INTO `v0_country` VALUES ('LS', 'Lesotho');
INSERT INTO `v0_country` VALUES ('LR', 'Liberia');
INSERT INTO `v0_country` VALUES ('LY', 'Libyan arab jamahiriya');
INSERT INTO `v0_country` VALUES ('LI', 'Liechtenstein');
INSERT INTO `v0_country` VALUES ('LT', 'Lithuania');
INSERT INTO `v0_country` VALUES ('LU', 'Luxembourg');
INSERT INTO `v0_country` VALUES ('MO', 'Macau');
INSERT INTO `v0_country` VALUES ('MK', 'Macedonia');
INSERT INTO `v0_country` VALUES ('MG', 'Madagascar');
INSERT INTO `v0_country` VALUES ('MW', 'Malawi');
INSERT INTO `v0_country` VALUES ('MY', 'Malaysia');
INSERT INTO `v0_country` VALUES ('MV', 'Maldives');
INSERT INTO `v0_country` VALUES ('ML', 'Mali');
INSERT INTO `v0_country` VALUES ('MT', 'Malta');
INSERT INTO `v0_country` VALUES ('MH', 'Marshall islands');
INSERT INTO `v0_country` VALUES ('MQ', 'Martinique');
INSERT INTO `v0_country` VALUES ('MR', 'Mauritania');
INSERT INTO `v0_country` VALUES ('MU', 'Mauritius');
INSERT INTO `v0_country` VALUES ('YT', 'Mayotte');
INSERT INTO `v0_country` VALUES ('MX', 'Mexico');
INSERT INTO `v0_country` VALUES ('FM', 'Micronesia');
INSERT INTO `v0_country` VALUES ('MD', 'Moldova, republic of');
INSERT INTO `v0_country` VALUES ('MC', 'Monaco');
INSERT INTO `v0_country` VALUES ('MN', 'Mongolia');
INSERT INTO `v0_country` VALUES ('MS', 'Montserrat');
INSERT INTO `v0_country` VALUES ('MA', 'Morocco');
INSERT INTO `v0_country` VALUES ('MZ', 'Mozambique');
INSERT INTO `v0_country` VALUES ('MM', 'Myanmar');
INSERT INTO `v0_country` VALUES ('NA', 'Namibia');
INSERT INTO `v0_country` VALUES ('NR', 'Nauru');
INSERT INTO `v0_country` VALUES ('NP', 'Nepal');
INSERT INTO `v0_country` VALUES ('NL', 'Netherlands');
INSERT INTO `v0_country` VALUES ('AN', 'Netherlands antilles');
INSERT INTO `v0_country` VALUES ('NC', 'New caledonia');
INSERT INTO `v0_country` VALUES ('NZ', 'New zealand');
INSERT INTO `v0_country` VALUES ('NI', 'Nicaragua');
INSERT INTO `v0_country` VALUES ('NE', 'Niger');
INSERT INTO `v0_country` VALUES ('NG', 'Nigeria');
INSERT INTO `v0_country` VALUES ('NU', 'Niue');
INSERT INTO `v0_country` VALUES ('NF', 'Norfolk island');
INSERT INTO `v0_country` VALUES ('MP', 'Northern mariana islands');
INSERT INTO `v0_country` VALUES ('NO', 'Norway');
INSERT INTO `v0_country` VALUES ('OM', 'Oman');
INSERT INTO `v0_country` VALUES ('PK', 'Pakistan');
INSERT INTO `v0_country` VALUES ('PW', 'Palau');
INSERT INTO `v0_country` VALUES ('PS', 'Palestinian territory');
INSERT INTO `v0_country` VALUES ('PA', 'Panama');
INSERT INTO `v0_country` VALUES ('PG', 'Papua new guinea');
INSERT INTO `v0_country` VALUES ('PY', 'Paraguay');
INSERT INTO `v0_country` VALUES ('PE', 'Peru');
INSERT INTO `v0_country` VALUES ('PH', 'Philippines');
INSERT INTO `v0_country` VALUES ('PN', 'Pitcairn');
INSERT INTO `v0_country` VALUES ('PL', 'Poland');
INSERT INTO `v0_country` VALUES ('PT', 'Portugal');
INSERT INTO `v0_country` VALUES ('PR', 'Puerto rico');
INSERT INTO `v0_country` VALUES ('QA', 'Qatar');
INSERT INTO `v0_country` VALUES ('RE', 'Reunion');
INSERT INTO `v0_country` VALUES ('RO', 'Romania');
INSERT INTO `v0_country` VALUES ('RU', 'Russian federation');
INSERT INTO `v0_country` VALUES ('RW', 'Rwanda');
INSERT INTO `v0_country` VALUES ('SH', 'Saint helena');
INSERT INTO `v0_country` VALUES ('KN', 'Saint kitts and nevis');
INSERT INTO `v0_country` VALUES ('LC', 'Saint lucia');
INSERT INTO `v0_country` VALUES ('PM', 'Saint pierre and miquelon');
INSERT INTO `v0_country` VALUES ('VC', 'Saint vincent and the grenadines');
INSERT INTO `v0_country` VALUES ('WS', 'Samoa');
INSERT INTO `v0_country` VALUES ('SM', 'San marino');
INSERT INTO `v0_country` VALUES ('ST', 'Sao tome and principe');
INSERT INTO `v0_country` VALUES ('SA', 'Saudi arabia');
INSERT INTO `v0_country` VALUES ('SN', 'Senegal');
INSERT INTO `v0_country` VALUES ('SC', 'Seychelles');
INSERT INTO `v0_country` VALUES ('SL', 'Sierra leone');
INSERT INTO `v0_country` VALUES ('SG', 'Singapore');
INSERT INTO `v0_country` VALUES ('SK', 'Slovakia');
INSERT INTO `v0_country` VALUES ('SI', 'Slovenia');
INSERT INTO `v0_country` VALUES ('SB', 'Solomon islands');
INSERT INTO `v0_country` VALUES ('SO', 'Somalia');
INSERT INTO `v0_country` VALUES ('ZA', 'South africa');
INSERT INTO `v0_country` VALUES ('GS', 'South georgia');
INSERT INTO `v0_country` VALUES ('ES', 'Spain');
INSERT INTO `v0_country` VALUES ('LK', 'Sri lanka');
INSERT INTO `v0_country` VALUES ('SD', 'Sudan');
INSERT INTO `v0_country` VALUES ('SR', 'Suriname');
INSERT INTO `v0_country` VALUES ('SJ', 'Svalbard and jan mayen');
INSERT INTO `v0_country` VALUES ('SZ', 'Swaziland');
INSERT INTO `v0_country` VALUES ('SE', 'Sweden');
INSERT INTO `v0_country` VALUES ('CH', 'Switzerland');
INSERT INTO `v0_country` VALUES ('SY', 'Syrian arab republic');
INSERT INTO `v0_country` VALUES ('TW', 'Taiwan, province of china');
INSERT INTO `v0_country` VALUES ('TJ', 'Tajikistan');
INSERT INTO `v0_country` VALUES ('TZ', 'Tanzania, united republic of');
INSERT INTO `v0_country` VALUES ('TH', 'Thailand');
INSERT INTO `v0_country` VALUES ('TG', 'Togo');
INSERT INTO `v0_country` VALUES ('TK', 'Tokelau');
INSERT INTO `v0_country` VALUES ('TO', 'Tonga');
INSERT INTO `v0_country` VALUES ('TT', 'Trinidad and tobago');
INSERT INTO `v0_country` VALUES ('TN', 'Tunisia');
INSERT INTO `v0_country` VALUES ('TR', 'Turkey');
INSERT INTO `v0_country` VALUES ('TM', 'Turkmenistan');
INSERT INTO `v0_country` VALUES ('TC', 'Turks and caicos islands');
INSERT INTO `v0_country` VALUES ('TV', 'Tuvalu');
INSERT INTO `v0_country` VALUES ('UG', 'Uganda');
INSERT INTO `v0_country` VALUES ('UA', 'Ukraine');
INSERT INTO `v0_country` VALUES ('AE', 'United Arab Emirates');
INSERT INTO `v0_country` VALUES ('GB', 'United Kingdom');
INSERT INTO `v0_country` VALUES ('US', 'United States');
INSERT INTO `v0_country` VALUES ('UM', 'United States minor islands');
INSERT INTO `v0_country` VALUES ('UY', 'Uruguay');
INSERT INTO `v0_country` VALUES ('UZ', 'Uzbekistan');
INSERT INTO `v0_country` VALUES ('VU', 'Vanuatu');
INSERT INTO `v0_country` VALUES ('VE', 'Venezuela');
INSERT INTO `v0_country` VALUES ('VN', 'Viet nam');
INSERT INTO `v0_country` VALUES ('VG', 'Virgin islands, british');
INSERT INTO `v0_country` VALUES ('VI', 'Virgin islands, u.s.');
INSERT INTO `v0_country` VALUES ('WF', 'Wallis and futuna');
INSERT INTO `v0_country` VALUES ('EH', 'Western sahara');
INSERT INTO `v0_country` VALUES ('YE', 'Yemen');
INSERT INTO `v0_country` VALUES ('YU', 'Yugoslavia');
INSERT INTO `v0_country` VALUES ('ZM', 'Zambia');
INSERT INTO `v0_country` VALUES ('ZW', 'Zimbabwe');

I got an internal server error. I repeated the experiment and the same thing happened. Does anyone know what caused this? The page suggests I email myself but I doubt I will know what to do.
silverdown
Well I took a look at it and this one is the one giving you problems


Code:
INSERT INTO `v0_country` VALUES ('SO', 'Somalia');



Why I have no idea, but without that one that all install fine.
swizzy
Are you getting a HTTP status 500, or a MySql error,

As of now, when i tried the sql query in phpMyAdmin, it just went perfectly fine.

Try gzipping the file and then uploading via phpmyadmin import
Related topics
E-Cards with PHP & MySQL
How To : Improve Your PHP Programming
PHP, MySQL and Flash
What would you prefer?
PHP MySQL Commands Question
[MySQL] Client does not support authentication protocol
PHP/MYSQL... teach me, what i have to do...
MySQL down (Server 2)
Help needed with getting table to auto update via html form
Online Database programme
Creating tables with Mysql queries
i also resolved the issue of openvpn+freeradius+mysql
Baldur's Gate
Don't Use MyISAM ...
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.