473,326 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to change the port MySQL uses?

HI,I need to configure my.cnf for listening TCP/IP port and to write datas in MySql database ,Could you help me to do it?
Oct 2 '07 #1
2 3402
Atli
5,058 Expert 4TB
Hi David. Welcome to The Scripts!

I'm not sure I understand what you are asking. Could you try to explain a little better?

If you only want to change the port the MySQL server listens on, look for the "port" constant in your "my.cnf" file and change it's value.

P.S.
I've changed the title of this thread to better describe it's topic.
Using good, descriptive titles that follow the Posting Guidelines will increase your chances of getting you questions answered!

Moderator
Oct 3 '07 #2
bartonc
6,596 Expert 4TB
HI,I need to configure my.cnf for listening TCP/IP port and to write datas in MySql database ,Could you help me to do it?
Expand|Select|Wrap|Line Numbers
  1. #
  2. # SERVER SECTION
  3. # ----------------------------------------------------------------------
  4. #
  5. # The following options will be read by the MySQL Server. Make sure that
  6. # you have installed the server correctly (see above) so it reads this 
  7. # file.
  8. #
  9. [mysqld]
  10.  
  11. # The TCP/IP Port the MySQL Server will listen on
  12. port=3306
It's pretty self explanatory. Or, just search the file for "port=3306".
Oct 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Figmo | last post by:
I am trying to connect to MySQL running on a port other than 3306. Port 8123 in my case. I have tried this: MYSQL_CONNECT("server.domain.com:8123","user","password") And also tried adding...
0
by: Steve Carson-Rowland | last post by:
I have tried to install MySQL 4.0.14 on my Pentium 1.7Ghz running WindowsXP Professional. the installation ran through without any problems. However, every command gives an error:...
0
by: Dan | last post by:
I am running two database instances of mysql (one on a nonstandard port). After granting users permissions I find that I can access mysql from other machines only if I use the standard port. When...
2
by: Sami | last post by:
I keep getting the famous 'Too Many Connection' Error, and don't know how to change my variables, so they persist even if i have to restart mysql service. Platform: Windows 2003 Server My...
3
by: Barth?l?my von Haller | last post by:
Hi ! I installed mysql on windows xp. The first time I started mysld, there is no problem. But, now, each time I start mysqld, I must change the port in my.xxx else I got the following error :...
0
by: ryanmhuc | last post by:
I have root access to this server which has been preconfigured. I can connect using the mysql command tool. But I cannot connect using any mysql GUI software (I am currently tunneling the 3306 port...
6
by: Mitesh | last post by:
How can I programattically retrieve MySQL server's port value through PHP?
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
3
by: Suresh P | last post by:
Hi All, I tried to access the mysql database in ODBC using ip address and username/password. It returns, "cannot connect to MySQL server on IP ADDRESS(10060)". This could be related to Firewall...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.