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



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

Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
mysql error 1042 can't get hostname for your address
1 Answer(s)      3 years 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
Get the error messages displayed
Get the error messages displayed  How to get the error messages displayed
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
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
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
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
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
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
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
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
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
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
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 Year
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
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
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
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 
online address book
online address book  how to create online address book using jsp and mysql
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
PHP MySql Server Version
provides mysql_get_server_info() function to check the MySql version. To check... these values with your MySql's username & respective password if (!$link) { die('Could not connect: ' . mysql_error());//mysql_error() function returns
cPanel upgrade MySQL 5.1 to 5.5
MySQL 5.5 and use can use the cPanel wizard to upgrade your MySQL server 5.1...: Backup your MySQL data using mysqldump The mysqldump tool is very handy tool... Sever. Step 3: Copy my.cnf and restart MySQL Login to your MySQL server box
Mysql Date Select
Mysql Date Select       The Tutorial elaborate an example from 'Mysql Date Select'. This section makes you easy to understand how to get the current date from your database
Java Get Example
ip address of your network interface.    Get Image... Get examples like how to get the date and time, IP Address or memory size etc... examples to get the things fast and practice these code at your end to learn java
Get IP Example
Get IP Example       This example shows you ip address of your network...() : Network Interface class is used for get name, and a list of IP addresses
Getting IP Address
Getting IP Address  Hi... i want to get the ip address of the current... get the ip address 247 in database but i need to get the ip address of that particular system.... how to get that please help me doing that... thank
Getting IP Address
Getting IP Address  Hi... i want to get the ip address of the current... get the ip address 247 in database but i need to get the ip address of that particular system.... how to get that please help me doing that... thank
error
,address,ss; int mos,phone; double it; public void accept(String n,string ad,int ph,String s,int ms) { name=n; address=ad...() { System.out.println("Name"+name+"\naddress"+address+"\nphone no"+phone
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...;b>Alamat</b>: ").append(doc.get("C_ADDRESS")).append("<br>...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui
miniproject on address book in java
miniproject on address book in java  hi rose india, i urgently need an miniproject on address book in java(netbeans ide 6.9.1) using mysql..... Though not of address book but operations are same i.e add,delete,search,update
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...;b>Alamat</b>: ").append(doc.get("C_ADDRESS")).append("<br>...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...;b>Alamat</b>: ").append(doc.get("C_ADDRESS")).append("<br>...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...;b>Alamat</b>: ").append(doc.get("C_ADDRESS")).append("<br>...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...;b>Alamat</b>: ").append(doc.get("C_ADDRESS")).append("<br>...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui
can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...;b>Alamat</b>: ").append(doc.get("C_ADDRESS")).append("<br>...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui
Upgraded MySQL from 5.1 to 5.5, running into PDOException: SQLSTATE[42000]: Syntax error or
Upgraded MySQL from 5.1 to 5.5, running into PDOException: SQLSTATE[42000]: Syntax error or  Upgraded MySQL from 5.1 to 5.5, running into PDOException: SQLSTATE[42000]: Syntax error or
Add color to background but I can't labels or textfields
Add color to background but I can't labels or textfields  Please help me to fix this. public static void main(String[] args) { JFrame f... followed your instruction and this is what I came up with, am I missing something
Using Network Address To Connect to a Database
to connect a MySql database with your application over a network then you must load... .style1 { text-align: center; } How To Use Network Address To Connect To The Database If a database being connecte over a network then you need to get
error
servlets which is given at your link http://www.roseindia.net/servlets/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
 

 

 

DMCA.com