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
the home page.
On the phpMyAdmin page, create a database test and create a t_student table in the database. The table contains three fields: id, name, and age.
Then you can start to use PHP to access the MySql database. Since PHP has encapsulated the MySql database, it is very easy to access MySql with PHP.
Ii. PHP accessing MySql database
The following PHP program accesses the t_student table in the test database, reads data, and outputs data
PHP Forbidden403 error when accessingProblem Description: Again on your own computer with localhost access no problem, the same LAN under the other machine can not access and appear the following tips!Permission to access/on the This serverapache/2.4.9 (Win64) php/5.5.12 Server at 192.168.0.106 Port 80This requires changing the httpd.conf configuration file under the Apache\conf directory(1) Open Httpd.con find......(2) Change the content of this para
In the website background, you often have to deal with databases. This article describes how to use XAMPP to manage MySql Databases and How to Use PHP to access MySql databases.
1. Use XAMPP to manage MySql Databases
Use XAMPP to open the MySql Management page. Follow these steps: Start XAMPP and click Admin to go to the home page of XAMPP for Windows. Click phpMyAdmin on the home page.
On the phpMyAdmin page, create a database test and create a t_student table in the database. The table cont
Configuration instance for accessing the SQL Server database in Ruby, rubysql
To analyze the data stored on SQL Server, you have to study how to use Ruby to access SQL Server. In fact, it is quite simple:
Install FreeTDS
Download FreeTDS source code
Decompress, compile, and install:Copy codeThe Code is as follows:./Configure -- prefix =/usr/local/freetds make sudo make install
Install Tiny_TDS
Tiny_TDS is easy to install and use. It is recommended:C
The applet encapsulates the http access network library instance code, and the applet instance
Small Program encapsulate the code for accessing the network library through http
Previously, LeanCloud was used for storage. Now, the following encapsulation is used for calling traditional APIs:
Document Source: https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-request.html
The Code is as follows:
Var HOST = 'HTTP: //
Implementation of accessing the mysql database using python (Example 2), pythonmysql
This article describes how to access the mysql database using python. We will share this with you for your reference. The details are as follows:
First install MySQLdb that matches the Python version
Example 1
import MySQLdbconn=MySQLdb.connect(user='root',passwd='123',db='example')cur=conn.cursor()cur.execute("select id,lastname,firstname, date_format(dob,'%Y-%m-%d %
Nginx deployment method for accessing the project created by vue-cli, nginxvue-cli
From the official vue-router website, we learned that backend configuration is required for packaging a vue project built in history mode, while hash is not required, however, the address has an additional #/suffix. After a project built in the hash mode is packaged, I only need to use software such as webstorm to open the access.
However, the background technology is
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.