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);
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 = " <
The story:
A couple days ago I had created a new database and added a table to it using phpMyAdmin running on the Chrome browser. I then attempted to do something else, don't remember what, using the same software, when Chrome crashed.
I then could not get into the database using my name.
Hello all
I am trying to do--Attendance of the month march
and i want format for text file is like
employeecode 1 2 3 4 5 6 7 8------30
E01 A P P P p P P P
E02
--
--
--
I m using mysql database. My tables for this is :
for employee code at0310..... for dates m using table mar10
Hi all
I am trying to access mysql through a c program, bt am stuck with a specific error.
code:
#include <mysql/mysql.h>
#include <my_global.h>
int main(int argc, char **argv)
{
MYSQL *conn;
conn = mysql_init(NULL);
mysql_real_connect(conn, "localhost", "zetcode", "passwd", "testdb", 0, NULL, 0);
mysql_query(conn, "use vobd_db");
mysql_query(conn, "select * from obd_call_status limit 10")
Hi, I'm new to programming in shell and I wanted to make a simple database on shell script but I'm having trouble in deleting data. I would apreciate any kind of help. Thank you in adavanced.
HI All,
I just finished setting up my server with Bind9 + DLZ + MySQL. I have just a simple question. Every time any particular domain is queried, the mysql database is being checked to resolve the queried domain.
Hello
I've just installed R for the first time, along with DBI, Rmysql packages - all from package manager (using Kubuntu at the moment).
I can't connect to mysql:
Code:
con1 <-dbConnect(MYSQL(), user="myname", password="mypassword", host="localhost", dbname="casualty")
error in evaluating the argument 'drv' in selecting a method fo