[Ajuda] MySQL
#1

tenho tido mts problemas ultimamente, simplesmente nгo consigo usar MySQL, por que simplesmente ele nгo insere, consulta, atualiza e deleta nada.

pawn Код:
#include <a_samp>
#include <a_mysql>

new Conexao;

main()
{
}

public OnGameModeInit()
{

    Conexao = mysql_connect("localhost", "root", "servidor", "");
    if (mysql_ping() == 0)
    {
        printf("Problemas na conexгo com o banco de dados o servidor serб finalizado!");
        SendRconCommand("exit");
        return true;
    }
    else
    {
        mysql_function_query(Conexao, "INSERT INTO `contas` (`usuario`, `senha`) VALUES ('MyName', '0000')", false, "", "");
    }
    return 1;
}
Log do MySQL
Код:
[01:00:27] >> mysql_connect(localhost, root, servidor, ******) on port 3306
[01:00:27] CMySQLHandler::CMySQLHandler() - constructor called.
[01:00:27] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "servidor" | Username: "root"
[01:00:27] CMySQLHandler::Connect() - Unknown database 'servidor' (Error ID: 1049)
[01:00:27] >> mysql_ping( Connection handle: 1 )
[01:00:27] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
[01:00:27] >> mysql_query_callback( Connection handle: 1 )
o que acontece e que a tabela servidor, e as colunas usuario e senha ja estao criadas no pgadmin. Alguem pode me dizer por que isto esta acontecendo ?
Reply


Messages In This Thread
MySQL - by Geo1996 - 19.06.2013, 04:04
Re: MySQL - by Delta 4 - 19.06.2013, 06:58
Re: MySQL - by DartakousLien - 19.06.2013, 09:30
Re: MySQL - by Geo1996 - 19.06.2013, 22:05
Re: MySQL - by smiiir - 19.06.2013, 22:34
Re: MySQL - by Geo1996 - 19.06.2013, 22:51
Re: MySQL - by smiiir - 19.06.2013, 22:54
Re: MySQL - by Geo1996 - 19.06.2013, 22:55
Re: MySQL - by DartakousLien - 19.06.2013, 23:26

Forum Jump:


Users browsing this thread: 1 Guest(s)