close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Which operating system?

Thread began 11/07/2013 7:05 am by Nathon Jones Web Design | Last modified 3/25/2014 9:54 am by Nathon Jones Web Design | 3468 views | 9 replies

anonymous

Getting an error in PHP MyAdmin when trying to import that into my 1and1 hosted MySQL database:

SQL query:

-- Dumping database structure for njMySQL
CREATE DATABASE IF NOT EXISTS `njMySQL` /*!40100 DEFAULT CHARACTER SET latin1 */

MySQL said: Documentation
#1044 - Access denied for user 'dbo520243751'@'%' to database 'njMySQL'


So, I figured that it was trying to create a new database when in actual fact I just want it to create the tables and views so I did a Find/Replace in my .sql backup file and replaced occurences of the old database name, njMySQL with the new database name, db520243751, but I now receive the following error:

SQL query:

?-- --------------------------------------------------------
-- Host: (IP address)
-- Server version: 5.0.95-log - Source distribution
-- Server OS: redhat-linux-gnu
-- HeidiSQL Version: 8.3.0.4694
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */

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 '?-- --------------------------------------------------------
-- Host: ' at line 1

Bottom line, does it matter where my database is hosted? It works fine on my existing host and HeidiSQL connects to it no problem and I'm happy using that. If the site is hosted elsewhere will that matter apart from maybe nano-seconds of processing time?

Appreciate the advice, thank you.
NJ

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...