Connexion MySql + fichier my.cnf
Bonjour,
J'ai acheter un serveur Sql privé de chez OVH et lors de la connexion, ce message apparait :
Citation:
Unable to connect to any of the specified MySQL hosts.
Voici mon code de connexion :
Code:
1 2 3
| Using Connexion As MySqlConnection = New MySqlConnection("Data Source=10.0.226.160;Database=irvine;User ID=root;Password=regarderpaslol;Port=3306")
Connexion.Open()
Connexion.Close() |
- Je suis certain que mes identifiants entrer dans le script de connexion son bon
- J'ai installer MySql.Data.dll
- J'ai l'import :
Code:
Imports MySql.Data.MySqlClient
Voici à présent la source de mon fichier my.cnf :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| [mysqld]
tmp_table_size=1M
query_cache_size=1M
skip-locking
key_buffer_size = 12M
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 128K
max_binlog_cache_size = 1M
max_join_size = 1M
max_seeks_for_key = 2M
max_write_lock_count = 512K
myisam_max_sort_file_size = 1M
########################
##Configuration Innodb##
##Uncomment the next line to disable Innodb
#skip-innodb
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 10M
innodb_log_buffer_size = 4M
innodb_flush_log_at_trx_commit=1 |
Merci de m’apporter votre aide !
Bonne vacance à tous 8-)