Recently learning Ethereum, with truffle webpack encounter a problem, is to start the service can use localhost:8080 access, but can not use ip:8080 access. In this way, the other computer will not be able to access its own applications.
Native ip:219.216.65.127
I did a little experiment, nodejs+express, and I started the application with node, I can access it with localhost:3000, I can access it with 219.2
] # mysql-u Root-p' Root ' @' localhost ' (using Password:no)[[email protected] tmp] # mysql-u Root MySQL' Root ' @' localhost ' (using Password:no)Installation process has not set the root password, not clear the root password, search for some information on the Internet, there are some situations:1: Some blogs say that Root's random password is in/root/.mysql_secret, but I don't have/root/.mysql_secret fi
Label:My colleague said this morning that the MySQL root account was not logged in. I tried.#mysql-U root-pTip "Access denied for user ' root ' @ ' localhost ' (using Password:yes)" I was the first person who changed the root password because of the resignation of a colleague after years. Follow the forgot root password to reset your password:#/etc/init.d/mysql stop#mysqld_safe –skip-grant-tables #mysql-uroot-pMysql>update Mysql.user Set Password=pass
Locally installed PHP and MySQL environment, with localhost access to a page, the page is just a simple link MySQL database and the following SQL statement to execute the query and echo out the data, which also uses a popular online paging function, each page shows 20 data, There are 300,000 data in the total database.
SELECT Id,col1,col2col3,col4,col5 FROM DBtable LIMIT 100,20;
The execution time of this statement in the MySQL task window is only 0.
The difference between localhost and 127.0.0.1, localhost127.0.0.1
Today a new server, the code moved past the time, unexpectedly database connection, looked, the original will be configured from 127.0.0.1 to localhost on it. Look at the difference between the two below.
Many people will be exposed to this IP address 127.0.0.1. Maybe you'll ask 127.0.0.1 what's the address? In fact, 127.0.0.1 is a loopback
the problem, Chrome browser stay on this page. (This page is the default page of Apache, not the page in the virtual host)Later, I think it will not be the Hosts file error? So I tried to use IP:HTTP://127.0.0.1/access, and to my surprise, this time the visit was successful.So I decided that the problem arose between localhost and ip:http://127.0.0.1/, to find the point where the problem occurred, and then I found the results in Baidu 1,
Opinion
The difference between localhost and 127.0.0.1What is the difference between localhost and 127.0.0.1? I believe some people will say that the local IP, has been said, with 127.0.0.1 than localhost better, you can reduce the one time parsing. It seems that some people are not clear about this problem, in fact, there is a difference between the two.
No1:
Error: [ins-06101] IP address of localhost cocould not be determined when installing Oracle 11gr2
This error occurs because the host name and/etc/hosts file are inconsistent. You only need to write the host name and its IP address to the/etc/hosts file and then OK.
View the relationship between the host name and the IP Address:
[Root @ localhost ~] # Cat/etc/sysconfig/Network
Networking = Yes
Networking_
Error: [ins-06101] IP address of localhost cocould not be determined when installing Oracle 11gr2
This error occurs because the host name and/etc/hosts file are inconsistent. You only need to write the host name and its IP address to the/etc/hosts file and then OK.
View the relationship between the host name and the IP Address:
[Root @ localhost ~] # Cat/etc/sysconfig/Network
Networking = Yes
Networking_
This article describes how to use localhost to connect to Mysql in PHP, but there is no problem when using 127.0.0.1, this article also explains the difference between using 127.0.0.1 and localhost to connect to the MySQL host. For more information, see
Problems found
I encountered a problem yesterday when I was helping my colleagues compile and install the Linux environment:The WEB server is apache and th
Modify the port and menu Localhost on WampServer ,. Modify the port and menu Localhost on WampServer. 1. modify Apache port 1. select Apache on the interface. the hidden menu option is displayed. open the configuration file httpd. conf; 2. find Listen80; WampServer to modify the port and Localhost,
1. modify the Apache Port
1. select Apache on the page, and the
Problem scenariosStart a mysql container locally using docker and map the local port 33067 to mysql 3306 in the container. Assume that the container's ip address is 172.17.0.2, use the local mysql client to try to connect to the mysql service in the container.Method 1Because it is bound to the local port 33067, you can specify the port number during connection.Mysql-uroot-P33067In this case, the mysql-client actually enters the local mysql service and can be viewed using the status command.C
Use JDBC to access Oracle, that is, when java connects to the local database, the address can be localhost or 127.0.0.1. But what is the difference between the two? Which one is better? Many people think that these two are completely the same, and some people think 127.0.0.1 is better, because it is a local IP address and does not need to be resolved from the domain name. In fact, these two are very different: loc
MySQL 'root' @ 'localhost' cannot be logged on
This morning, my colleague said that the MySQL root Account could not be logged on. I tried it.# Mysql-u root-pPrompt "Access denied for user 'root' @ 'localhost' (using password: YES )"
Because a colleague resigned after the year, my first response was: Who modified the root password? Reset the password Based on the root password you forgot:#/Etc/init. d/mysql
Find problems
Yesterday, when I was compiling my colleagues to install the Linux environment, I encountered a problem:The Web server is Apache and the database is MySQL.
So I wrote a PHP page that tests the connection database:
Copy Code code as follows:
$mysql = mysql_connect (' localhost ', ' root ', ');
Open http://localhost/test.php Test
Hint: Can ' t connect to the local MySQL ser
First, add Tomcat. Find Window-preferences-server-runtime environments-add-apache-in the menu bar select Tomcat Version-find the path to the Tomcat file-Modify the JRE path to add success to jre-Second, locate the Server view (Window-show view-server) and double-clickTomcat v7.0 Server at localhost, the window will come up with a UI interface that configures Tomcat, where the server Locations (the second row on the left) is found, and in the following
Today want to try Php7, but found that PHP7 only support Apache2.4 version, and my Computer Apache is 2.2 version, in order to want to taste, you have to download the new Apache2.4PHP7 and apache2.4 after the installation integration, localhost can be accessed normally, no problem.Then I configured a few virtual host, this time, the virtual host can be normal access, but localhost will not be able to access
Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: NO), 28000 denied
Recently, mysql 5.6 has encountered the following problems.
Thank you for sharing the original article:
CASE Environment:
Operating System:Red Hat Enterprise Linux Server release 5.7 (Tikanga) 64 bit
Database Version:Mysql 5.6.19 64 bit
Case study:
I started to learn mysql this day and installed Mysql 5.6.19 64bit database. The installat
(0) CatalogueGo, is a lifetime, not to go, but also for life (the road of the program Ape)Navicat connection MySQL appears 2003--can ' t connect to MySQL server on localhost (10061)One: Cause(0) As a result of a recent illness, leisure time (i.e. illness) has been thinking about the following questions:Think of a: how to be a qualified program ape, how to become a veritable procedural ape?Think two: There is the end, it is not worth staying up late to
An example of accessing the MySQL database using PHP. read an example of accessing the MySQL database using PHP, bodycenterh2PHP + MySQL example/h2h3ufontcolor = brown please input data in the text area and confirm/font/u/h3formaction =? Echo $ PHP_SELF? Method = PO
PHP + MySQL example
Enter data in the text area and confirm
$ Connect_id = mysql_connect ("
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.