First, modify the Apache port
1, select Apache in the interface, Pop-up hidden menu options, open the configuration file httpd.conf;
2. Find
Listen;
3, change 80 to 8080 (of course, you can also set other unused ports);
4, save, waiting to restart Wamp service can be.
Second, modify Wamp open the default page
ports for Localhost and PhpMyad
Php cannot use localhost to connect to the mysql server. mysql is installed in redhat. in the mysql console, you can use localhost to connect to the server. However, when you connect to the server in php, you cannot connect to the server using 127.0.0.1, check the hosts file and find out which of the following heroes corresponding to 127.0.0.1 and localhost know
When setCookie () is used, the Cookie cannot be saved if the domain name is specified as "localhost". why ?? Found during local testing. In this way, you can set the Cookie: PHPcodesetCookie (name [1], yy1, time () + 3600,); setCookie (name [2], yy2, time () + 3600 using setCookie () when the domain name is specified as "localhost", the Cookie cannot be saved. why ??
Found during local testing.
In this way
Macos solved the problem of being unable to use localhost to connect to mysql. Today, the php environment has been set up on mac, and programs that run well in Windows and linux have been put on mac, so they cannot access the database, the host connected to the database uses localhost. you can confirm that the database configuration is correct, because the localhost
This is the log
Dec 17:01:49 to8todb postfix/master[19382]: Daemon started--version 2.7.1, Configuration/etc/postfix
Dec 17:02:06 to8todb postfix/smtpd[19453]: Connect from localhost[127.0.0.1]
Dec 17:02:06 To8todb postfix/trivial-rewrite[19456]: Warning:do not list domain corp.to8to.com in BOTH mydestination a nd virtual_mailbox_domains
Dec 17:02:06 To8todb postfix/smtpd[19453]: NOQUEUE:reject:RCPT from localho
When setCookie () is used, the Cookie cannot be saved if the domain name is specified as "localhost". why ?? Found during local testing. In this way, you can set the Cookie: PHPcodesetCookie ('name [1] ', 'yy1', time () + 3600,' when setCookie () is used, when the domain name is specified as "localhost", the Cookie cannot be saved. why ??
Found during local testing.
In this way, you can set the Cookie:
Php cannot use localhost to connect to the mysql server. mysql is installed in redhat. in the mysql console, you can use localhost to connect to the server. However, when you connect to the server in php, you cannot connect to the server using 127.0.0.1, check the hosts file and find out which of the following heroes corresponding to 127.0.0.1 and localhost know
First, modify the Apache port1, select Apache in the interface, Pop-up hidden menu options, open the configuration file httpd.conf;2, find Listen 80;3, change 80 to 8080 (of course, you can also set other unused ports);4, save, waiting to restart Wamp service can be.Second, modify Wamp open the default page Localhost and PhpMyadmin ports1. Open the Wamp directory under the Wampmanager.tpl file2. FindParameters: "http://
Difference between localhost and 127.0.0.1: localhost127.0.0.1
No1:
Localhost is also called local. The correct explanation is: local server
127.0.0.1 in windows and other systems, the correct explanation is: local address (local server)
Their parsing uses the host file of the local machine, and windows automatically resolves localhost to 127.0.0.1
No2:
Today, I saw the Lulu flash memory asking about the Cookie and then raised more questions. I suddenly thought that when I used Fiddler to debug whether gzip compression was used last night, I found that localhost under IE7 could not be captured. Then, I searched "Fiddler localhost" and found the cause.
The following references to: http://www.fiddlertool.com/Fiddler/help/knownissues.aspI don't see IE7 or. NE
Tags: upd tables No denied graphics workaround default creat useERROR 1045 (28000): Access denied for user ' admin ' @ ' localhost ' (using Password:yes) Solutions Error description: After adding a user in MySQL, you may be prompted with error 1045 (28000): Access denied for user errors. Delete the value NULL in User.user, or update null to test 1) Delete from User where user is null 2) update the user set user= ' test ' where user is null. Unexpect
This occurs when MySQL-Front is installed. "you cannot connect to" localhost "on the MySQL server "!" The server name is: localhost port number is 3306 connection type: Direct user name is: root Password: 123456 (registration information is set after mysql is enabled, the password is tried according to the Internet: quot; 123 quot;, empty, none) is installed in drive C programFiles (x86). the folder conta
'Starting Tomcat v8.0 Server at localhost' has encountered a problem., tomcatencountered
'Starting Tomcat v8.0 Server at localhost' has encountered a problem.
An error occurred while "Starting Tomcat's local host server V8.0.
Problem Occurred
Problem occurred
Details
Port 8080 required by Tomcat v8.0 Server at localhost is already in use. the server may already
MySQL can be connected using localhost, but cannot be connected using an IP address.
MySQL localhost connection, but cannot use IP address connection Solution
It mainly involves the problem that MySQL can be connected by localhost but cannot be connected by IP address. For MySQL, it can be connected by localhost but
Recently, a strange problem occurred to a friend's server. After two weeks, the problem was not solved. With the unremitting efforts of Brother, he finally solved the problem. Send it to your friends.
Problem: the php program can only connect to mysql using localhost, but cannot use 127.0.0.1
System Environment: centos5.5 64-bit mysql 5.0.77 php 5.2.17
The process for solving the problem is as follows:
1. According to the error message "Warning: mysql
A new test project is created today. After the service is started, the service cannot be accessed using http: // 127.0.0.1: 8080. A message is displayed, indicating that the link is rejected. Then I found that I could access it via http: // localhost: 8080. So I searched the internet and sorted the notes as follows:
1. ping localhost address to: 1
: 1 is the IPv6 format
It indicates that the machine
Oracle12c cannot access http: // localhost: 1158/em.
The em of oracle12c is simplified and much smaller than 11g, and the login method has also changed. The original http: // localhost: 1158/em or https: // localhost: 1158/em login will always encounter problems, the solution needs to use XDB, you need to set the port.
Connect first
Copyright (c) 1982,201 4, O
This article introduces the solution to the mysql startup prompt accessdeniedforuserroot @ localhost (usingpassword: YES). For more information, see this article.
This article introduces the solution to the mysql startup prompt "access denied for user root @ localhost (using password: YES)". for more information, see this article.
The key is: Access denied for user 'root' @ '
PHP cannot connect to MySQL server using localhost
MySQL is installed under Redhat, under the MySQL console, you can connect using localhost, but not when you connect in PHP. and using 127.0.0.1 can connect, view the Hosts file, found the corresponding 127.0.0.1 and localhost
Which Warrior knows what's going on?
------Solution--------------------
is not the si
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.