Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. MySQL connection

MySQL connection

Scheduled Pinned Locked Moved IT & Infrastructure
csharpphpapachemysqlsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bwagz
    wrote on last edited by
    #1

    Hi, I just installed Apache/MySQL/PHP for our web server. I'm trying to figure out how Apache works with MySQL and http. I created a program in C# that connects to MySQL, but the connection doesn't require me to specify a port number. This is kinda confusing to me. In the MySQL config it defaults to ports 3306 for the client and server listening. Does Apache somehow know MySQL is listening to these ports? How does the connection to MySQL work? Thanks.

    M 1 Reply Last reply
    0
    • B bwagz

      Hi, I just installed Apache/MySQL/PHP for our web server. I'm trying to figure out how Apache works with MySQL and http. I created a program in C# that connects to MySQL, but the connection doesn't require me to specify a port number. This is kinda confusing to me. In the MySQL config it defaults to ports 3306 for the client and server listening. Does Apache somehow know MySQL is listening to these ports? How does the connection to MySQL work? Thanks.

      M Offline
      M Offline
      Mila025
      wrote on last edited by
      #2

      Hi, Apache uses php and in php configuration file is a whole section about MySQL and entry mysql.default_port. If you'd like to change that port you can modify my.cnf file (MySQL configuration file).

      ----------- Mila

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups