Click here to Skip to main content
15,887,746 members
Home / Discussions / Database
   

Database

 
AnswerRe: Alter statement - Pin
RedDk15-Nov-13 11:55
RedDk15-Nov-13 11:55 
QuestionOLAP database missing... Pin
SalCon12-Nov-13 22:46
SalCon12-Nov-13 22:46 
SuggestionRe: OLAP database missing... Pin
Richard MacCutchan13-Nov-13 0:37
mveRichard MacCutchan13-Nov-13 0:37 
AnswerRe: OLAP database missing... Pin
GuyThiebaut13-Nov-13 2:57
professionalGuyThiebaut13-Nov-13 2:57 
QuestionMariaDB and c# Pin
Septimus Hedgehog12-Nov-13 3:59
Septimus Hedgehog12-Nov-13 3:59 
AnswerRe: MariaDB and c# Pin
Simon_Whale13-Nov-13 3:40
Simon_Whale13-Nov-13 3:40 
GeneralRe: MariaDB and c# Pin
Septimus Hedgehog13-Nov-13 7:29
Septimus Hedgehog13-Nov-13 7:29 
AnswerTested successfully. Pin
Septimus Hedgehog14-Nov-13 1:12
Septimus Hedgehog14-Nov-13 1:12 
I downloaded and installed the file that Simon provided at this link[^] (select the one called ADO.NET Driver for MySQL (Connector/NET). When you follow the download links the sly folks at Oracle/MySql try to make logging in to their website "mandatory" and it's easy to miss the tiny "No thanks, just start my download" link below it, so there's no need to register. When you've downloaded and installed it create a project and add an assembly reference to "C:\Program Files (x86)\MySQL\MySQL Connector Net 6.7.4\Assemblies\v4.0\MySql.Data.dll" (obviously, select your Program Files location and the framework version as appropriate).

If you have MariaDB installed chances are you have the IDE tool, HeidiSQL installed. I used that to create a new session, database and a table. In HeidiSQL, the menu Tools -> User manager is where I created a user registration and pointed it to "home", 127.0.0.1 and I set the access rights to full, the usual suspects.

Here's a code fragment I slapped into a console app (apologies if it doesn't format nicely):

string connStr = "server=127.0.0.1;uid=DogzBolx;pwd=password;database=imagecatalog;";
MySqlConnection conn = new MySqlConnection(connStr);
conn.Open();
string sql = "select * from data order by count desc;";
MySqlDataAdapter da = new MySqlDataAdapter(sql, conn);
DataTable data = new DataTable();
da.Fill(data);
foreach(DataRow row in data.Rows)
{
    string md5 = Convert.ToString(row[0]);
    int count = Convert.ToInt32(row[1]);
    Console.WriteLine(md5 + " " + count);
}
conn.Close();


Excuse my glib database name. Smile | :) I ran the app and (bless my cotton socks) it worked! Anyway, it works fine, and it's rather jolly quick. Whether MariaDB can do what I'm familiar with using SQL Server I can't say but it seems to offer a lot of things. HeidiSQL itself is rather nice. I don't know if there are other tools to maintain MariaDB databases but seeing it's all part of the MariaDB-related family it's certainly works just fine. That's my $0.02c worth. Big Grin | :-D
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.


modified 14-Nov-13 7:24am.

QuestionConcat NULL yields NULL inside a Function Pin
Fabricio Dos Santos Antunes12-Nov-13 0:36
Fabricio Dos Santos Antunes12-Nov-13 0:36 
AnswerRe: Concat NULL yields NULL inside a Function Pin
Simon_Whale12-Nov-13 1:01
Simon_Whale12-Nov-13 1:01 
AnswerRe: Concat NULL yields NULL inside a Function Pin
Mycroft Holmes12-Nov-13 1:57
professionalMycroft Holmes12-Nov-13 1:57 
SuggestionRe: Concat NULL yields NULL inside a Function Pin
Richard Deeming12-Nov-13 3:08
mveRichard Deeming12-Nov-13 3:08 
GeneralRe: Concat NULL yields NULL inside a Function Pin
Fabricio Dos Santos Antunes13-Nov-13 6:26
Fabricio Dos Santos Antunes13-Nov-13 6:26 
QuestionAccess 2003 tables to link sqlexpress 2005 but i had not seen table .DBO ? Pin
Member 245846711-Nov-13 17:02
Member 245846711-Nov-13 17:02 
AnswerRe: Access 2003 tables to link sqlexpress 2005 but i had not seen table .DBO ? Pin
Eddy Vluggen14-Nov-13 6:57
professionalEddy Vluggen14-Nov-13 6:57 
Questiondatabase schema Pin
Member 1039287510-Nov-13 19:09
Member 1039287510-Nov-13 19:09 
GeneralRe: database schema Pin
Kornfeld Eliyahu Peter10-Nov-13 19:35
professionalKornfeld Eliyahu Peter10-Nov-13 19:35 
AnswerRe: database schema Pin
Mycroft Holmes10-Nov-13 21:29
professionalMycroft Holmes10-Nov-13 21:29 
AnswerRe: database schema Pin
jschell11-Nov-13 8:16
jschell11-Nov-13 8:16 
GeneralRe: database schema Pin
PIEBALDconsult11-Nov-13 17:54
mvePIEBALDconsult11-Nov-13 17:54 
AnswerRe: database schema Pin
Shameel12-Nov-13 3:17
professionalShameel12-Nov-13 3:17 
QuestionConditional query (sql) Pin
leone10-Nov-13 7:11
leone10-Nov-13 7:11 
AnswerRe: Conditional query (sql) Pin
Mycroft Holmes10-Nov-13 12:22
professionalMycroft Holmes10-Nov-13 12:22 
QuestionA mixture of PHP PDO and fabricating a query replacing SELECT SQL CALC FOUND ROWS Pin
jkirkerx7-Nov-13 10:12
professionaljkirkerx7-Nov-13 10:12 
QuestionSQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
jkirkerx7-Nov-13 6:19
professionaljkirkerx7-Nov-13 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.