MySQL #164 error, Can't migrate to live server.

Need help upgrading your Joomla! website or converting to Joomla! 3.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Mon Aug 22, 2016 4:21 pm

Hello Everybody.

I have finished a website in my localhost and im ready to migrate to a live server, I after uploading the files and creating the new database, I can't import the DB because of this error.


-- Database: `cppfcenter`
--

-- --------------------------------------------------------

--
-- Table structure for table `o4wau_assets`
--

CREATE TABLE `o4wau_assets` (
`id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
`parent_id` int(11) NOT NULL DEFAULT '0'COMMENT
) ;
MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 14

Unfortunately Im not a BD knowledgeable, in fact very little know about data bases,
The live hosting is Shared hosting at Hostgator.
I make a copy of the DB file and I remove the line 14 but still no working, also after erasing the line 14 another error on line 4 came out.


Im Using.
Joomla 3.6.2
My SQL version 5.7.11
PHP Version 5.6.19
Template is Rockettheme Salient.

Please, I will appreciate any help in this issue.

Thank you in advance.

Carlos

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Mon Aug 22, 2016 4:29 pm

You have a problem in your assets table. I advise you to spend that little money and install aclmanager.net which (which it's diagnostics tool) identifies and repairs all asset issues on your site in a nutshell and fully automated. It is very valuable since it also handles the full ACL. http://www.aclmanagerdemo.net/administrator/index.php

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Mon Aug 22, 2016 4:41 pm

Leolam.
Thank you for your fast reply.
I will get into that, I was thinking in reinstalling the core joomla files, I wonder if that will work?

Thanks

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Mon Aug 22, 2016 4:46 pm

If you point to the Joomla update component and the option to "reinstall Joomla core files" that won't fly since that only installs the files and folders and does not create the database entry. You might try in phpMyAdmin to repair the tables. Sometimes that helps but the assets table is corrupt or missing and that asset table needs repaired. For that the ACL-Manager Diagnostics is the perfect tool

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Mon Aug 22, 2016 4:56 pm

Thanks Leo.
the people from hostgator, says that the problem is with the version of mysql, they are using version 5.5 and say that is the issue, and i cant upgrade because i have others websites hosted (shared hosting) and will potentially damage the other ones. they says I have to get a VPS or dedicated server, which i cant afford.
My question is, if I fix the table with ACL-Manager, still will be compatible with the older version of hostgator??

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Mon Aug 22, 2016 5:16 pm

Nonsense by HG. They are just trying to sell you extra services. Totally unrelated to the PHP-version. It is a corrupt database (try "repair" in phpMyAdmin of the database in question) or a missing table which can be resolved with ACLmanager.

Joomla runs well on PHP 5.3.10 up so PHP 5.5.xx no issues at all


Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Mon Aug 22, 2016 5:24 pm

Leo.
Thank you
I just bough ACL manager, but they wont activate my account until the payment clear in their side, says will take 2 to 7 days, I dont understand why, while with any other paid extensions you can download immediately after you submit the payment.
I have contact them to see if my account can be activated asap since i have to upload this site today.

Thank you very much for your help, i will let you know if works ;)

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Mon Aug 22, 2016 5:31 pm

where did you buy this at aclmanager.net ?
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Mon Aug 22, 2016 5:34 pm

Yes, I just got activated. :))

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Mon Aug 22, 2016 5:41 pm

ok cool otherwise I would have send Sander a message. He is very helpful

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Mon Aug 22, 2016 5:46 pm

ok, ACL Manager found several errors, and fixed all. now according ACL have no errors all green and pretty.
I export the db after the fix and still.
-- Table structure for table `o4wau_assets`
--

CREATE TABLE `o4wau_assets` (
`id` int(10) UNSIGNED NOT NULL COMMENT 'Primary Key',
`parent_id` int(11) NOT NULL DEFAULT '0'COMMENT
) ;
MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 14


Same error, getting crazy here,!! i check the table, i the line 14 doesnt exit, (eventually since i deleted last week)
any ideas??

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Tue Aug 23, 2016 5:05 am

Backup your database of the site (as well as the entire site with Akeebabackup) and run the following query which will replace the structure of your assets table

Code: Select all

DROP TABLE IF EXISTS `o4wau__assets`;
CREATE TABLE IF NOT EXISTS `o4wau__assets` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
  `parent_id` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set parent.',
  `lft` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
  `rgt` int(11) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
  `level` int(10) unsigned NOT NULL COMMENT 'The cached level in the nested tree.',
  `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'The unique name for the asset.\n',
  `title` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'The descriptive title for the asset.',
  `rules` varchar(5120) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'JSON encoded access control.',
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_asset_name` (`name`),
  KEY `idx_lft_rgt` (`lft`,`rgt`),
  KEY `idx_parent_id` (`parent_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=207 ;
That should for sure resolve this

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

User avatar
Sirvonfloyd
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Wed Apr 28, 2010 5:18 pm
Location: Miami, FL
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by Sirvonfloyd » Wed Aug 24, 2016 6:52 pm

Hi Leo.
I manage to apply the fix and worked.
Thank you very much for your help, truly appreciated.

Regards
Carlos

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: MySQL #164 error, Can't migrate to live server.

Post by leolam » Thu Aug 25, 2016 2:48 am

Hi Carlos, Glad to be able to guide you through this. Job well done. (don't forget to backup!)

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -


Locked

Return to “Migrating and Upgrading to Joomla! 3.x”