我在asp.net上写了我的网站,并试图用hostgator托管它,但我似乎无法成功上传我的数据库。我下载了sql server管理工作室(2008 cuz我的电脑很旧)并生成了一个脚本并将其上传到php admin的导入部分。它说这是成功的,但它给了我这个错误,当我刷新它时,我的桌子或任何东西都没有。
USE [master]
GO
/****** Object: Database [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] Script Date: 04/08/2014 17:29:07 ******/
CREATE DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] ON PRIMARY
( NAME = N'ASPNETDB_af4ae78d33fc4895ba88828a794ca99a_DAT', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ASPNETDB.MDF' , SIZE = 10240KB , MAXSIZE = UNLIMITED, FILEGROWTH = 5120KB )
LOG ON
( NAME = N'ASPNETDB_TMP_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ASPNETDB_log.ldf' , SIZE = 768KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [C:\USERS\SCRIBBLENAUT.OWNER-PC\D[...]
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem.
ERROR: Unknown Punctuation String @ 208
STR: :\
SQL: USE [master]
GO
/****** Object: Database [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] Script Date: 04/08/2014 17:29:07 ******/
CREATE DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] ON PRIMARY
( NAME = N'ASPNETDB_af4ae78d33fc4895ba88828a794ca99a_DAT', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ASPNETDB.MDF' , SIZE = 10240KB , MAXSIZE = UNLIMITED, FILEGROWTH = 5120KB )
LOG ON
( NAME = N'ASPNETDB_TMP_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ASPNETDB_log.ldf' , SIZE = 768KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%)
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET COMPATIBILITY_LEVEL = 100
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_NULL_DEFAULT OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_NULLS OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_PADDING OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_WARNINGS OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ARITHABORT OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_CLOSE ON
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_CREATE_STATISTICS ON
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_SHRINK OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_UPDATE_STATISTICS ON
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET CURSOR_CLOSE_ON_COMMIT OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET CURSOR_DEFAULT GLOBAL
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET CONCAT_NULL_YIELDS_NULL OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET NUMERIC_ROUNDABORT OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET QUOTED_IDENTIFIER OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET RECURSIVE_TRIGGERS OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET DISABLE_BROKER
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_UPDATE_STATISTICS_ASYNC OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET DATE_CORRELATION_OPTIMIZATION OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET TRUSTWORTHY OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ALLOW_SNAPSHOT_ISOLATION ON
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET PARAMETERIZATION SIMPLE
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET READ_COMMITTED_SNAPSHOT OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET HONOR_BROKER_PRIORITY OFF
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET READ_ONLY
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET RECOVERY FULL
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET MULTI_USER
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET PAGE_VERIFY NONE
GO
ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET DB_CHAINING OFF
GO
SQL query:
USE [master] GO /****** Object: Database [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] Script Date: 04/08/2014 17:29:07 ******/ CREATE DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] ON PRIMARY ( NAME = N'ASPNETDB_af4ae78d33fc4895ba88828a794ca99a_DAT', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ASPNETDB.MDF' , SIZE = 10240KB , MAXSIZE = UNLIMITED, FILEGROWTH = 5120KB ) LOG ON ( NAME = N'ASPNETDB_TMP_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ASPNETDB_log.ldf' , SIZE = 768KB , MAXSIZE = UNLIMITED, FILEGROWTH = 10%) GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET COMPATIBILITY_LEVEL = 100 GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) begin EXEC [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF].[dbo].[sp_fulltext_database] @action = 'enable' end GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_NULL_DEFAULT OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_NULLS OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_PADDING OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ANSI_WARNINGS OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ARITHABORT OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_CLOSE ON GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_CREATE_STATISTICS ON GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_SHRINK OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_UPDATE_STATISTICS ON GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET CURSOR_CLOSE_ON_COMMIT OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET CURSOR_DEFAULT GLOBAL GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET CONCAT_NULL_YIELDS_NULL OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET NUMERIC_ROUNDABORT OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET QUOTED_IDENTIFIER OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET RECURSIVE_TRIGGERS OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET DISABLE_BROKER GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET AUTO_UPDATE_STATISTICS_ASYNC OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET DATE_CORRELATION_OPTIMIZATION OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET TRUSTWORTHY OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET ALLOW_SNAPSHOT_ISOLATION ON GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET PARAMETERIZATION SIMPLE GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET READ_COMMITTED_SNAPSHOT OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET HONOR_BROKER_PRIORITY OFF GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET READ_ONLY GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET RECOVERY FULL GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET MULTI_USER GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET PAGE_VERIFY NONE GO ALTER DATABASE [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUMENTS\VISUAL STUDIO 2010\WEBSITES\WEBSITE5\APP_DATA\ASPNETDB.MDF] SET DB_CHAINING OFF GO
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 '[master]
GO
/****** Object: Database [C:\USERS\SCRIBBLENAUT.OWNER-PC\DOCUME' at line 1
它说错误在第一行,这对我来说似乎有点荒谬。我不认为我的查询有任何问题,因为它是生成的。有人有主意吗?我真的需要这个工作。我花了3个多月的时间建立这个网站,没有数据库就没什么了!