[Help] cofuture database problem

Results 1 to 6 of 6
  1. #1
    Novice djneo2005 is offline
    MemberRank
    May 2007 Join Date
    1Posts

    [Help] cofuture database problem

    I got problems connecting the server to the database. I change the username, password and database name in the database.cs then I press F6 to make the build. but when I run the server the message comes:

    MySql.Data.MySqlClient.MySqlException: Access denied for user 'Database Usernam'
    @'localhost' (using password: YES)
    at MySql.Data.MySqlClient.PacketReader.CheckForError()
    at MySql.Data.MySqlClient.PacketReader.ReadHeader()
    at MySql.Data.MySqlClient.PacketReader.OpenPacket()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate411()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate()
    at MySql.Data.MySqlClient.NativeDriver.Open()
    at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetConnection()
    at MySql.Data.MySqlClient.MySqlConnection.Open()
    at COServer.Database.ConnectDatabase() in E:\Servers\Conquer Servers\Visual S
    tudio 2005\CoFuture_Release\Server\Database.cs:line 45
    Could not connect to the database with that username/password combination
    Database Connection: Successful
    Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Access denied for us
    er 'Database Usernam'@'localhost' (using password: YES)
    at MySql.Data.MySqlClient.PacketReader.CheckForError()
    at MySql.Data.MySqlClient.PacketReader.ReadHeader()
    at MySql.Data.MySqlClient.PacketReader.OpenPacket()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate411()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate()
    at MySql.Data.MySqlClient.NativeDriver.Open()
    at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetConnection()
    at MySql.Data.MySqlClient.MySqlConnection.Open()
    at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[]
    datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand co
    mmand, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
    Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
    at COServer.Database.GetGuilds() in E:\Servers\Conquer Servers\Visual Studio
    2005\CoFuture_Release\Server\Database.cs:line 522
    at COServer.Start..ctor() in E:\Servers\Conquer Servers\Visual Studio 2005\Co
    Future_Release\Server\Start.cs:line 87
    at COServer.Start.Main() in E:\Servers\Conquer Servers\Visual Studio 2005\CoF
    uture_Release\Server\Start.cs:line 160

    I'm kinda noob when it comes to C# so if anyone could help me out I'd would be greatfull :)


  2. #2
    Enthusiast metalicgecko is offline
    MemberRank
    Dec 2007 Join Date
    45Posts

    Re: [Help] cofuture database problem

    Quote Originally Posted by djneo2005 View Post
    I got problems connecting the server to the database. I change the username, password and database name in the database.cs then I press F6 to make the build. but when I run the server the message comes:

    MySql.Data.MySqlClient.MySqlException: Access denied for user 'Database Usernam'
    @'localhost' (using password: YES)
    at MySql.Data.MySqlClient.PacketReader.CheckForError()
    at MySql.Data.MySqlClient.PacketReader.ReadHeader()
    at MySql.Data.MySqlClient.PacketReader.OpenPacket()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate411()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate()
    at MySql.Data.MySqlClient.NativeDriver.Open()
    at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetConnection()
    at MySql.Data.MySqlClient.MySqlConnection.Open()
    at COServer.Database.ConnectDatabase() in E:\Servers\Conquer Servers\Visual S
    tudio 2005\CoFuture_Release\Server\Database.cs:line 45
    Could not connect to the database with that username/password combination
    Database Connection: Successful
    Unhandled Exception: MySql.Data.MySqlClient.MySqlException: Access denied for us
    er 'Database Usernam'@'localhost' (using password: YES)
    at MySql.Data.MySqlClient.PacketReader.CheckForError()
    at MySql.Data.MySqlClient.PacketReader.ReadHeader()
    at MySql.Data.MySqlClient.PacketReader.OpenPacket()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate411()
    at MySql.Data.MySqlClient.NativeDriver.Authenticate()
    at MySql.Data.MySqlClient.NativeDriver.Open()
    at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
    at MySql.Data.MySqlClient.MySqlPool.GetConnection()
    at MySql.Data.MySqlClient.MySqlConnection.Open()
    at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[]
    datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand co
    mmand, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
    Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
    at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
    at COServer.Database.GetGuilds() in E:\Servers\Conquer Servers\Visual Studio
    2005\CoFuture_Release\Server\Database.cs:line 522
    at COServer.Start..ctor() in E:\Servers\Conquer Servers\Visual Studio 2005\Co
    Future_Release\Server\Start.cs:line 87
    at COServer.Start.Main() in E:\Servers\Conquer Servers\Visual Studio 2005\CoF
    uture_Release\Server\Start.cs:line 160

    I'm kinda noob when it comes to C# so if anyone could help me out I'd would be greatfull :)

    Its nothing to do with C# really your password or user name is wrong basically the rest of it is just thrown exceptions because the database wasn't connected successfully your best bet would be checking the user name and pass once again...?

  3. #3
    Account Upgraded | Title Enabled! madcows7 is offline
    MemberRank
    Sep 2007 Join Date
    127.0.0Location
    608Posts

    Re: [Help] cofuture database problem

    yeah you tenered the database name wrong and everything

  4. #4
    Proficient Member Shiro Chan is offline
    MemberRank
    Apr 2007 Join Date
    Digimon WorldLocation
    160Posts

    Re: [Help] cofuture database problem

    The error is in your config (if it has one). The server is trying to connect to your db with the username "Database Usernam", without the dbl quotes.

  5. #5
    Enthusiast metalicgecko is offline
    MemberRank
    Dec 2007 Join Date
    45Posts

    Re: [Help] cofuture database problem

    Quote Originally Posted by Shiro Chan View Post
    The error is in your config (if it has one). The server is trying to connect to your db with the username "Database Usernam", without the dbl quotes.

    Ah yea I didnt even read the actual log i just saw the familiar invalid what ever and posted lol

  6. #6
    Account Upgraded | Title Enabled! Korvacs is offline
    MemberRank
    Jan 2008 Join Date
    298Posts

    Re: [Help] cofuture database problem

    gg someone else who cant follow the guide, hurray



Advertisement