I'm tryng to write a simple program c++ to connect to Mysql database based in my 127.0.0.1 server:
int main (void) {
cout << "\033[2J" << "\033[0;0f";
MYSQL mysql;
MYSQL *conn;
conn = mysql_init(&mysql);
cout << "conn = " << conn << "\n";
// cout << "mysql = " <
Hi all, I have a basic question on MySQL:
http://de.php.net/manual/en/ref.pdo-mysql.php
"Use --with-pdo-mysql[=DIR] to install the PDO MySQL extension, where the optional [=DIR] is the MySQL base install directory."
Which file should be used for that command?
edit: think it's mysql, but I'm getting "Access denied for user 'root'@'localhost' (using password: YES)".
this program works
Code:
#include <mysql++.h>
#include <iostream>
#include <iomanip>
using namespace std;
MYSQL *connection, mysql;
MYSQL_RES *result;
MYSQL_ROW row;
int query_state;
int main() {
mysql_init(&mysql);
When starting XAMPP, I get the message "XAMPP: Another MySQL daemon is already running.", and MySQL is deactivated in the XAMPP status.
When I try to stop Apache with "sudo /etc/init.d/apache2 stop" I get: "sudo: /etc/init.d/apache2: command not found".
When I try to stop mySQL with "sudo /etc/init.d/mysql stop", I get: "sudo: /etc/init.d/mysql: c
I'm trying to setup Simple Machines Forum which uses MySQL, which I had installed but it wasn't being used for anything.I forgot the passwords and what not and figured it would be easiest to just start fresh, so I purged all mysql stuff and installed again.It won't start now. It says "Starting MySQL database server: mysqld . . . . . . . . . . . . . .
Hi,
I have install MySQL serve in Fedora 16 32 bi distro that I have on my pc, but I can't start MySQL from command line. Can you please help?
Hi,
yesterday I have installed ampache server together.
I want to recover my mysql root password so I have followed this tutorial and stopped the mysql server . when I am trying to start it its show a error message and won't start.
Hi all
I am trying to access mysql through a c program, bt am stuck with a specific error.