02-06-2012
Means you cannot access to your RDBMS... (So does not necessarily your RDBMS is down...)
Without more information, difficult to say more...
9 More Discussions You Might Find Interesting
1. Programming
help me in using database in c++
whether datas entered in c++ can be
stored in Oracle or access database?
give a hint (1 Reply)
Discussion started by: sajin_george
1 Replies
2. UNIX for Dummies Questions & Answers
I am looking for a database that i can use on Red Hat Linux 8.0. I wish to store records about my clients in it. I do not wish for i to be used on a server (3 Replies)
Discussion started by: adminbw
3 Replies
3. Programming
THis is my program
#include <stdio.h>
#include "sqlext.h"
#include "sql.h"
#include <string.h>
#include<errno.h>
// #include "sqlunix.h"
#define STR_LEN 30
#define SQL_NTS (-3)
#define MYSQLSUCCESS(rc) ((rc==SQL_SUCCESS)||(rc==SQL_SUCCESS_WITH_INFO))
... (8 Replies)
Discussion started by: ramneek
8 Replies
4. Linux
Hai ,
can any one suggest me any site where the mysql tutor for linux is avialable i am new to the linux mysql so i want to know right from the basics and how can i connect those database to planner tool in linux
:)
Regards
Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies
5. Programming
how can we connect to database(psql) using c language?.
Any one help.Pls say the hader file and function's avilable in C for database operation(like connecting,selecting,etc...). (3 Replies)
Discussion started by: sabari
3 Replies
6. UNIX for Dummies Questions & Answers
i've got a database setup that references user inputs to see if they are already inputted. What I am wanting to do is allow the user to update the database by typing
"update: name" where name is someone already in the database.
echo "Enter your name."
read NAME
location=`find . -name... (2 Replies)
Discussion started by: fufaso
2 Replies
7. Solaris
hi..
i have a need .. my php runs on my linux redhat box with mysql.. i want my php code to refer another mysql database
which is in solaris 10 x86... can u tell me the procedure ..
how it can be done through php .. sorry am new to php...
is it possible to redirect from linux mysql to... (7 Replies)
Discussion started by: senkerth
7 Replies
8. Solaris
I installed Oracle 10 software on Solaris 11 Express, everything was fine execpt I can't create database using dbca.rsp file. I populated file with following options.
OPERATION_TYPE = "createDatabase"
GDBNAME = "solaris_user.domain.com"
SID = "solaris_user"
TEMPLATENAME = "General... (0 Replies)
Discussion started by: solaris_user
0 Replies
9. Shell Programming and Scripting
I have a reseller account with hostgator, which means i have WHM and Cpanel. I have set up a staging environment for one of my wordpress installations (client website), which is essentially sitting at staging.domain.com (live site is at domain.com). The staging website is a complete copy of the... (1 Reply)
Discussion started by: nzrobert
1 Replies
LEARN ABOUT DEBIAN
dbix::class::datetime::epoch
DBIx::Class::DateTime::Epoch(3pm) User Contributed Perl Documentation DBIx::Class::DateTime::Epoch(3pm)
NAME
DBIx::Class::DateTime::Epoch - Automatic inflation/deflation of epoch-based columns to/from DateTime objects
SYNOPSIS
package MySchema::Foo;
use base qw( DBIx::Class );
__PACKAGE__->load_components( qw( DateTime::Epoch TimeStamp Core ) );
__PACKAGE__->add_columns(
name => {
data_type => 'varchar',
size => 10,
},
bar => { # epoch stored as an int
data_type => 'bigint',
inflate_datetime => 1,
},
baz => { # epoch stored as a string
data_type => 'varchar',
size => 50,
inflate_datetime => 'epoch',
},
# working in conjunction with DBIx::Class::TimeStamp
creation_time => {
data_type => 'bigint',
inflate_datetime => 1,
set_on_create => 1,
},
modification_time => {
data_type => 'bigint',
inflate_datetime => 1,
set_on_create => 1,
set_on_update => 1,
}
);
DATETIME
::FORMAT DEPENDENCY
There have been no assumptions made as to what RDBMS you will be using. As per the note in the DBIx::Class::InflateColumn::DateTime
documentation, you will need to install the DateTime::Format::* module that matches your RDBMS of choice.
DESCRIPTION
This module automatically inflates/deflates DateTime objects from/to epoch values for the specified columns. This module is essentially an
extension to DBIx::Class::InflateColumn::DateTime so all of the settings, including "locale" and "timezone", are also valid.
A column will be recognized as an epoch time given one of the following scenarios:
o "data_type" is an "int" of some sort and "inflate_datetime" is also set to a true value
o "data_type" is some other value (e.g. "varchar") and "inflate_datetime" is explicitly set to "epoch".
DBIx::Class::TimeStamp can also be used in conjunction with this module to support epoch-based columns that are automatically set on
creation of a row and updated subsequent modifications.
METHODS
add_columns( )
Provides backwards compatibility with the older DateTime::Epoch API.
_inflate_to_datetime( )
Overrides column inflation to use "Datetime->from_epoch".
_deflate_from_datetime( )
Overrides column deflation to call "epoch()" on the column value.
SEE ALSO
o DBIx::Class
o DBIx::Class::TimeStamp
o DateTime
AUTHORS
Brian Cassidy <bricas@cpan.org>
Adam Paynter <adapay@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2006-2012 by Brian Cassidy
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-01 DBIx::Class::DateTime::Epoch(3pm)