To make WebMatrix better, I suggest you ...

Please fix myqsl

I have mysql database that i can change with any program.
I made new php simple site, connected mysql database, when im trying to create new database im getting en error about syntax. If im creating table in for example phpmyadmin and then trying to change in webmatrix everything is ok.
Any suggestion to this?
Thanks.
Alexei, best regards

10 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    alexeialexei shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Ye YuYe Yu commented  ·   ·  Flag as inappropriate

        could you share the database script which cause error?

      • alexeialexei commented  ·   ·  Flag as inappropriate

        Hi, thanks for your reply
        No, i created database in phpmyadmin or directly in mysql cmd
        So database created and im trying to create new table
        In other apps i can, but through webmatrix im getting this error

      • Alexei KositsinAlexei Kositsin commented  ·   ·  Flag as inappropriate

        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 'database.`test` (`Name` varchar(50) NULL)' at line 1

        MySql.Data.MySqlClient.MySqlException (0x80004005): 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 'database.`test` (`Name` varchar(50) NULL)' at line 1
        at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
        at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
        at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
        at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
        at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
        at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
        at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
        at Microsoft.WebMatrix.DatabaseManager.MySqlDatabase.MySqlDatabaseProvider.CreateTable(DbConnection connection, DbTransaction transaction, String schema, TableInfo tableInfo)
        at Microsoft.WebMatrix.DatabaseManager.MySqlDatabase.MySqlDatabaseProvider.CreateTable(String connectionString, String schema, TableInfo tableInfo)
        at Microsoft.WebMatrix.DatabaseManager.IisDbManagerModuleService.CreateTable(DatabaseConnection databaseConnection, String schema, Object tableInfoData, String configPathState)
        at Microsoft.WebMatrix.DatabaseManager.Client.ClientConnection.CreateTable(String schema, Object tableInfoData)
        at Microsoft.WebMatrix.DatabaseManager.Client.ClientTable.CommitChanges()
        at Microsoft.WebMatrix.DatabaseManager.Client.TableDesignerViewModel.PerformSave()

        This error i'm getting!

      • Ye YuYe Yu commented  ·   ·  Flag as inappropriate

        where did you see the error dialog? do you mean you create an empty mysql database fail?

      Feedback and Knowledge Base