₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,921 members, 8,447,763 topics. Date: Saturday, 18 July 2026 at 10:52 PM

Toggle theme

OPEYEMIAD's Posts

Nairaland ForumOPEYEMIAD's ProfileOPEYEMIAD's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (of 39 pages)

ProgrammingRe: Vb.net Programmer Please come in and Help by OPEYEMIAD(op): 8:30am On Dec 26, 2015
OPEYEMIAD:
Hmm after several research i was able to solve the problem.

for learning purposes
i add mysql.data.dll and mysqlbackup. dll as reference then the code

[b]If txtBackupFile.Text = " " Then
MsgBox("No location selected", MsgBoxStyle.Critical, "Error Exporting Database"wink
btnBrowse.Focus()
Exit Sub
Else
connectme()
Dim cmd As MySqlCommand = New MySqlCommand
cmd.Connection = con
Dim mb As MySqlBackup = New MySqlBackup(cmd)
Try
If txtrestore.Text = "0" Then
mb.ExportToFile(txtBackupFile.Text)
MsgBox("Database Exported", MsgBoxStyle.Information, "Export Success"wink
ElseIf txtBackupFile.Text = "0" Then

mb.ImportFromFile(txtrestore.Text)

MsgBox("Database Imported", MsgBoxStyle.Information, "Import Success"wink
End If

con.Close()
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error"wink
Exit Sub
End Try

End If[/b]


But i encounter another bigger problem

i store images into my database size of all the record amounting to 4MB after exporting am unable to import it due to the size

i was able to solve my problem
my questions:
1. what is the best way to store images into database ?

i created a folder named passport inside my disk and send all the pictures in to the folder while saving directory into the database. it work fine

2. How do i import already exported database? i just upgrade my phpmyadmin so i cant continue without importing my database
please help
i edit my php.ini inside my phpmyadmin theremy enable me to upload upto 900M file size but still showing error during importation then
I open the sql file using notepad and delete all the converted binary file.
then i copied only the sql command and run it inside phpmyadmin

everything work fine


forgive me for asking question and answering my self
ProgrammingRe: Vb.net Programmer Please come in and Help by OPEYEMIAD(op): 8:14pm On Dec 25, 2015
Hmm after several research i was able to solve the problem.

for learning purposes
i add mysql.data.dll and mysqlbackup. dll as reference then the code

[b]If txtBackupFile.Text = " " Then
MsgBox("No location selected", MsgBoxStyle.Critical, "Error Exporting Database"wink
btnBrowse.Focus()
Exit Sub
Else
connectme()
Dim cmd As MySqlCommand = New MySqlCommand
cmd.Connection = con
Dim mb As MySqlBackup = New MySqlBackup(cmd)
Try
If txtrestore.Text = "0" Then
mb.ExportToFile(txtBackupFile.Text)
MsgBox("Database Exported", MsgBoxStyle.Information, "Export Success"wink
ElseIf txtBackupFile.Text = "0" Then

mb.ImportFromFile(txtrestore.Text)

MsgBox("Database Imported", MsgBoxStyle.Information, "Import Success"wink
End If

con.Close()
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error"wink
Exit Sub
End Try

End If[/b]


But i encounter another bigger problem

i store images into my database size of all the record amounting to 4MB after exporting am unable to import it due to the size

my questions:
1. what is the best way to store images into database ?
2. How do i import already exported database? i just upgrade my phpmyadmin so i cant continue without importing my database
please help
ProgrammingRe: Vb.net Programmer Please come in and Help by OPEYEMIAD(op): 9:49am On Dec 25, 2015
problem not yet solve am still waiting
ProgrammingRe: Vb.net Programmer Please come in and Help by OPEYEMIAD(op): 7:00pm On Dec 24, 2015
proxy20:
download the code below and use the view
www.java2s.com/Open-Source/AspDotNet_Free_Code/Database/Download_MySqlBackup_NET_MySQL_Backup_Solution_for_C_VB_NET_ASP_NET.htm
thanks

Having checked the demo
I have problem with mysqlbackup.dll refrence at run time so its practically impossible for me to use..

it will be nice if my above code can be corrected
ProgrammingRe: Vb.net Programmer Please come in and Help by OPEYEMIAD(op): 6:51pm On Dec 24, 2015
proxy20:
What version of vs do you use I use vs2015 .
i use 2013
ProgrammingVb.net Programmer Please come in and Help by OPEYEMIAD(op):
Am trying to Back up and restore my database, so have tried all my possible best
here is my code

FOR THE BACK UP
Imports MySql.Data.MySqlClient 'i import this statement before my public class formname

connectme() ' Have established a working connection with this already

dim strsql as string
strsql = "BACKUP DATABASE dbname TO DISK = C:\Users\LAPTOP\Desktop\dbname.sql"
Dim cmd As New MySqlCommand(strsql, con)
cmd.ExecuteNonQuery()

con.Close()

......................................Note: MySql.Data.dll is my reference
This is the error i got
An unhandled exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.dll

Additional information: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BACKUP DATABASE dbname TO DISK = C:\Users\LAPTOP\Desktop\dbname.sql' at line 1


FOR THE RESTORE
dim strsql as string
strsql = "RESTORE DATABASE dbname FROM DISK = C:\Users\LAPTOP\Desktop\dbname.sql"
Dim cmd As New MySqlCommand(strsql, con)
cmd.ExecuteNonQuery()

con.Close()
Your urgent intervention will be highly welcome and appreciated.
Technology MarketRe: Samsung Galaxy S4 Urgently Needed by OPEYEMIAD(m): 10:45am On Nov 14, 2015
rapcy:
I have s4 for sale @29k location is Abuja Holla if interested 07031042904
am in Abuja interested lets chart 07038162348
PhonesSamsung Galaxy S4 Urgently Needed by OPEYEMIAD(op): 10:26am On Nov 14, 2015
I need a clean fairly used samsung galaxy s4 with no major scratch and in perfect condition. I stay in Gwarinpa Abuja. Genuine sellers with fair price in Abuja and it environs may kindly text or call 07038162348. Thank you all.
EducationRe: When Your Mouth Puts You In Trouble by OPEYEMIAD(m): 9:35pm On Sep 27, 2015
if i were you i for say Kunu
ProgrammingRe: Newbies To Javascript by OPEYEMIAD(m): 9:12pm On Sep 27, 2015
please add me 08032950881

i called it ECMAScript to avoid confusion with Java
PoliticsWhen You Place An Order For RAM On OLX by OPEYEMIAD(op): 4:06pm On Sep 25, 2015
Caption this

EducationFood Don Done by OPEYEMIAD(op): 5:42am On Sep 09, 2015
#FederalPolytechnicNasarawa #Schoolofinformationtechnology #ComputerScience #Nacoss #NacossFPN #GraduatingStudents #daysiwillneverforget

PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 6:07pm On Sep 06, 2015
Owongtok:
Your last megabyte and phone credit balance please!
Do i need to declare that too?
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 6:06pm On Sep 06, 2015
Thank Jaaa Nairalander don dey follow suit Declare your Assets now. Let PMB know who is Rulling
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 2:44pm On Sep 06, 2015
enkay2go:
Chai! Nairalanders,Una no go kill person ooo.
its not funny am trying to be loyal
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 2:40pm On Sep 06, 2015
Crocz:
So u no get toothbrush and sponge? cry

Chai!
That one too na asset ?
PoliticsRe: Letter To MTN by OPEYEMIAD(m): 10:53am On Sep 06, 2015
even me i will not re- register am waiting for their bared message so that i throw my SIM into Can
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 9:58am On Sep 06, 2015
bakila:
You have no obligation to declare your assets no. Abi you wan show us bathroom slippers ne?
To show that am Loyal to the current administration and as a Good citizen
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 9:56am On Sep 06, 2015
BeskyPowa:
So 4 ur hood dis poverty dey leave since?
i dont know ooo. But i hear say PMB is looking saint. My assets shows am not corrupt.
Declare your own know
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 9:54am On Sep 06, 2015
chidifyn:
U v been promoted to be PMB's PA. Congratulations
Are you serious?
i need emperical evidence to beleive it
PoliticsRe: Nairalander Declare His Assets by OPEYEMIAD(op): 9:52am On Sep 06, 2015
bakila:
Were you appointed P A to you Ward Councillor?
No
PoliticsNairalander Declare His Assets by OPEYEMIAD(op): 8:55am On Sep 06, 2015
DECLARATION OF ASSETS.

Since our President PMB and his Vice PYO has declared their
assets, it is very important to declare mine also as a good
citizen... and it goes thus:

1. 4 pencil trousers and 3 black Jeans

2. 8 T-shirts and 1 suit

3. No wife yet but 2 future partner

4.No Son, and no daughter.

5. One bathroom slippers.

6. Three cover shoes and 3 leather palm

7. Two ties.

8. A bag of pure water.

9. One drum of rain water.

10. One bottle of Oil as a cream (ororo eran dindin).

11. one GSM ( Samsung Galaxy S2)

12. Three kongo of Garri

13. Two ankara.

14. 3 pots and one prayer kettle

15. One set of spoons and a set of plates.

16. One lamp

17. One stove.

18. One gallon for purchasing of kerosine.

19. One carpet and one Yinka Oba foam.

20. 1 Reading Chair and 1 Reading Table

21. No share @ all

22. Four boxerṣ and Three undies.

23. N1,010 @ Skye bank , and N1,005 @Fidelity Bank.
ProgrammingRe: Checking The Database(visual Basic 6.0) by OPEYEMIAD(m): 4:51am On Aug 28, 2015
set up database connecction i guess you can do dat

record here is your recordset name

Private sub search()
call connectionname
set record = new adodb.recordset
record.open "select * from databasetablename where customer_ID ='" text1.text"' and customer_name = '"text2.text"'", activeconectionname, 3, 3

if text1.text = "" & record.customer_id and text2.text = "" & record.customer_name then
label1.caption = "" &record.customer_name
else
msgbox ("no record found", vbcritical")
end if

set record = nothing
close activeconnection
end sub

if you dont get it add me on whatsapp to send the script to you

08032950881
ProgrammingRe: Creating A Group Chat With Html/javascript/php/mysql For Beginners by OPEYEMIAD(m): 7:01pm On Jul 05, 2015
Please i will want you to host it. may be we should contribute for the hosting, am mastering the code now. but please which one should i learn first
Javascript or Php ? I know HTML already and very good in Vb6.0
ProgrammingRe: Creating A Group Chat With Html/javascript/php/mysql For Beginners by OPEYEMIAD(m): 3:49pm On Jul 05, 2015
You never finish o

It work very well for me, i can convert it to mobile app but how do i go about the database i.e how do i link it to database when fully converted to .apk file? Do i need to host it
Hope my database will not full consider the lenght of chart?
ProgrammingRe: Creating A Group Chat With Html/javascript/php/mysql For Beginners by OPEYEMIAD(m): 3:28pm On Jul 05, 2015
Hmmmm Thanks for the good Job

Please Jquery is confusing, is like a source code when i download it. Do i need jquery in any chart application? can i write jquery code on my own?
thanks
ProgrammingRe: Creating A Group Chat With Html/javascript/php/mysql For Beginners by OPEYEMIAD(m): 5:33pm On Jul 03, 2015
Broooooooooo

i dey follow you bomber to vender
no starve us oooo
ProgrammingRe: Visual Basic by OPEYEMIAD(m): 4:19am On Jul 01, 2015
Yep we are here Any pro ?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (of 39 pages)