Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6713885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:25:55+00:00 2026-05-26T08:25:55+00:00

How do I set a port number for mysql connection in Agile Toolkit? The

  • 0

How do I set a port number for mysql connection in Agile Toolkit? The mysql in my local machine is running in a different port 3307, how should be my connection configuration look like?

I tried the following but it did not work,

$config['dsn']='mysql://atk:password@localhost:3307/atk';

I am getting the following error when I try a db test,

C:\xampp\htdocs\atk4.1.2\atk4\lib\DBlite/mysql.php:40 [2] mysql_pconnect() [function.mysql-pconnect]: [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://localhost:3306)
C:\xampp\htdocs\atk4.1.2\atk4\lib\DBlite/mysql.php:40 [2] mysql_pconnect() [function.mysql-pconnect]: No connection could be made because the target machine actively refused it. 

SQLException

Database connection failed

MySQL error: 
No connection could be made because the target machine actively refused it. 


C:\xampp\htdocs\atk4.1.2\atk4\lib\BaseException.php:37

Stack trace:
C:\xampp\htdocs\atk4.1.2\atk4\lib/BaseException.php :37  SQLException BaseException->collectBasicData(Null, 1, 0) 
C:\xampp\htdocs\atk4.1.2\atk4\lib/SQLException.php :45  SQLException BaseException->__construct("<p>Database connection failed</p><b>MySQL error:</b> <div style='border: 1px solid black'><font color=red>No connection could be...", Null, 1) 
C:\xampp\htdocs\atk4.1.2\atk4\lib/DBlite.php :359  SQLException SQLException->__construct(Null, "Database connection failed") 
C:\xampp\htdocs\atk4.1.2\atk4\lib/DBlite.php :101  gift_project DBlite->fatal("Database connection failed", True) 
C:\xampp\htdocs\atk4.1.2\atk4\lib/ApiCLI.php :276  gift_project DBlite->connect(Array(7)) 
C:\xampp\htdocs\atk4.1.2\page/dbtest.php :7  gift_project ApiCLI->dbConnect() 
C:\xampp\htdocs\atk4.1.2\atk4\lib/AbstractObject.php :129  gift_project_dbtest page_dbtest->init() 
C:\xampp\htdocs\atk4.1.2\atk4\lib/ApiFrontend.php :90  gift_project AbstractObject->add("page_dbtest", "dbtest", "Content") 
C:\xampp\htdocs\atk4.1.2\atk4\lib/ApiWeb.php :305  gift_project ApiFrontend->layout_Content() 
C:\xampp\htdocs\atk4.1.2\atk4\lib/ApiWeb.php :297  gift_project ApiWeb->addLayout("Content") 
C:\xampp\htdocs\atk4.1.2\atk4\lib/ApiWeb.php :182  gift_project ApiWeb->initLayout() 
C:\xampp\htdocs\atk4.1.2/index.php :15  gift_project ApiWeb->main() 

Solution : The following type of configuration works,

$config['dsn']=array('type'=>'mysql',
             'hostspec'=>'localhost:3307',
             'username'=>'atk',
             'password'=>'password',
             'database'=>'atk',
             'charset'=>'utf-8');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:25:56+00:00Added an answer on May 26, 2026 at 8:25 am

    try the following

     $config['dsn']=array('type'=>'mysql','username'=>'atk',
     'host'=>'localhost','database'=>'atk','password'=>'password',
     'port'=>3307,'charset'=>'utf-8');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In an app where a port number is set, I want to restrict the
Well, the title is quite self-explanatory... Is it possible to set default port number
We have a Windows Server 2003 machine running IIS6.0 that hosts two different websites.
I have a data set with following fields. host name, model, location, port number,
I'm trying to set the port on a cookie in ASP.NET (code below), but
How i can port this set of code in wp7 -(NSString *) timeSincePosted:(NSString *)ad_date
We have Tomcat application server set up at port 8080 and Apache Http Server
The documentation says: $ play start Note: the HTTP port can be set by
I'm trying to set up my local development environment, to which i'm using the
When I chnage to port number I'm connecting to to test the timout, my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.