Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JDBC mysql error 1042 can't get hostname for your address
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
mysql error 1042 can't get hostname for your address
1 Answer(s)      3 years and 7 months ago
Posted in : JDBC


Hi,

I am not able to connect to MySQL database. Its giving following error:

mysql error 1042 can't get hostname for your address

How to solve this error?

Thanks


Advertisement
View Answers

April 13, 2011 at 5:50 PM


Hi,

Find my.ini file of your MySQL Server and then add the following line to it:

skip-name-resolve

Complete code would be:

[mysqld]
port=3306
skip-name-resolve

This should solve the problem.

Thanks



Related Tutorials/Questions & Answers:
mysql error 1042 can't get hostname for your address
mysql error 1042 can't get hostname for your address  Hi, I am not able to connect to MySQL database. Its giving following error: mysql error 1042 can't get hostname for your address How to solve this error? Thanks  
PHP Get Browser IP Address
PHP Get Browser IP Address PHP provides us  $_SERVER['REMOTE_ADDR'] function is used to display the Browser IP address PHP Get IP Address Code: <?php echo "My Browser IP is :". $_SERVER['REMOTE_ADDR']; ?>
Advertisements
can't connect to MySQL Server(10060) - JDBC
can't connect to MySQL Server(10060)  Hii Sir, I am working with a jsp project with MySQL as server. Now i want to host my application. I am... MySQL front end. Can we connect to the MySQL server using the I.P address
Get IP Address Example
Get IP Address Example       This example shows you ip address of your... : NetworkInterface.getNetworkInterfaces() : Network Interface class is used for get name, and a list of IP
Get IP Address in Java
Get IP Address in Java In this example we will describe How to get ip address in java. An IP address is a numeric unique recognition number which...(). getHostAddress(). InetAddress():-The InetAddress is class represents an IP address
get from address using javamail api?
get from address using javamail api?  i want to get from address of particular mail using the javamail api? actually i had done it in one .jsp file... early as possible. thanks for your help
How to get client's address in a servlet
How to get client's address in a servlet       This is detailed java code to get client's address in a servlet. In this example we have used method getremoteAddr
Get your friends' phone numbers
Get your friends' phone numbers  How to create on update trigger
Get the error messages displayed
Get the error messages displayed  How to get the error messages displayed
how to get an lan system ip and mac address in java code
how to get an lan system ip and mac address in java code  strong text
sql query to get name,age,phone,address from tables t1,t2,t3,t4,t5 ..
sql query to get name,age,phone,address from tables t1,t2,t3,t4,t5 ..  ... , address FROM t1 order by name"; this is for 2 tables : query ="SELECT t.name... by name"; i want for 12 tables : i want to fetch name age pwd phone address from 12
Get an Editor to polish your pages
Get an Editor to polish your pages   ... will improve the credibility of your site as bad language makes the users lose confidence in the material that they will find on your site. Editors can also make
Find Your Host Name/IP Address
Find Your Host Name/IP Address   ... the getLocalHost() method to print the Host name as well as the IP Address of the local...;(UnknownHostException e){   System.err.println ("Can't
Java Get IP Address
Java Get IP Address       This section illustrates you how to obtain the IP Address of local host... getHostAddress() returns the IP address.     Here is the code of Java Get IP
How to get factorial in mysql
How to get factorial in mysql  Hi, In order to improve the speed of my queries, one in particular tries to find matches between multiple tables, I... alot for a function in mysql to find factorial numbers of a number and couldn't
Get Noticed with Your Resume
Get Noticed with Your Resume     ... the importance of your resume- they tell you that your resume can make or break your chances to get to the interview. No matter how often repeated, this point could never
backup your MySQL data using mysqldump:cPanel MYSQL 5.1 to 5.5
backup your MySQL data using mysqldump:cPanel MYSQL 5.1 to 5.5  backup your MySQL data using mysqldump:cPanel MYSQL 5.1 to 5.5
why this can't
why this can't  import java.util.*; class Dash{ public static void main(String args[]){ int x0=100; int[] x1=new int[3]; int[][] x2=new int[3][3]; int[][][] x3=new int[3][3][3
getting error in your login form code
getting error in your login form code  i tried your code for login form but i am getting an error.the error is undefined index userid...   hi friend, your form's input must have following : <input type
MySQL 5.1 upgrade to 5.5 error
MySQL 5.1 upgrade to 5.5 error  MySQL 5.1 upgrade to 5.5 error
MySQL 5.1 upgrade to 5.5 error
MySQL 5.1 upgrade to 5.5 error  MySQL 5.1 upgrade to 5.5 error
get and display blob from mysql on jsf
get and display blob from mysql on jsf  i want to get blob from mysql, and display on jsf page. your examples with jsp. i dont find an example with jsf. plese help me about this. thanks..   Have a look at the following
Mysql Date Get Year
Mysql Date Get Year       Mysql Date Get Year is the way of retrieving the current year. Understand with Example The Tutorial illustrate an example from 'Mysql Date Get
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
get info from mysql using jsp and servlet
get info from mysql using jsp and servlet  HELLO! I wanna create a jsp page which able to let me get its name, phone and other info by asking the user to key in their email address from mysql database by using servlet and jsp too
how to get the details of username&password of mysql - JDBC
how to get the details of username&password of mysql  Hi friends, i installed mysql 5.5 on my system successfully,but the thing is i forgotten the username and password .please tell me how to get those details . Thanks
How to Get Traffic from Social Media to Your App?
Ways to get Social Media Traffic on your application page The power of social... effective ways to get traffic from social media to your app. High level of activity... ultimately push people take a look at your new app. Look at most successful apps
Java example program to get IP address of own system
Java example program to get IP address of own system       java get own IP address An IP... the computer system's local host with IP address. Now we can get the IP address
Error in MySQL Procedure Using JAVA Code
Error in MySQL Procedure Using JAVA Code  The following Java code (using Connector/J to create a stored procedure on MySQL 5.0) does not execute successfully. Identify the cause and available solutions. statement.execute
Overview of Networking through JAVA,Find Your Host Name
Find Your Host Name   ...() method and pass it in the object. In this way we find out the ip address... import java.net.*; public class Hostname{   public 
Java Get Host Name
Java Get Host Name       In this Example you will learn how to get host name in Java. Go through... of a computer or an IP address using Java application language. The given program
 

 

 

DMCA.com